* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 220, 210, 0.08), transparent 30%),
    radial-gradient(circle at 80% 40%, rgba(0, 145, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #06111d, #050b13);
}

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 31, 49, 0.85), rgba(8, 18, 31, 0.75));
  border: 1px solid rgba(158, 205, 238, 0.18);
  backdrop-filter: blur(14px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 40px rgba(255, 255, 255, 0.02);
}

h1 {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #8fdff0;
  text-shadow: 0 0 18px rgba(0, 216, 239, 0.22);
}

.subtitle {
  text-align: center;
  color: #7f9bb5;
  margin: 0 0 24px;
  font-size: 14px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 13px;
  color: #7f9bb5;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(158, 205, 238, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

input::placeholder {
  color: #7f9bb5;
}

input:focus {
  outline: none;
  border-color: rgba(0, 220, 239, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 220, 239, 0.15);
}

button {
  padding: 12px;
  background: linear-gradient(100deg, #16e0d4, #0095f0);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.error-box {
  background: rgba(255, 90, 90, 0.12);
  color: #ff9d9d;
  border: 1px solid rgba(255, 90, 90, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: center;
}

.lang-switch {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 3px;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(158, 205, 238, 0.15);
  border-radius: 24px;
}

.panel-header .lang-switch {
  margin: 0;
}

.lang-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: #7f9bb5;
  cursor: pointer;
  transition: 0.2s;
}

.lang-btn:hover:not(.active) {
  color: #8fdff0;
}

.lang-btn.active {
  background: linear-gradient(100deg, #16e0d4, #0095f0);
  color: #fff;
}

.btn-link {
  display: block;
  text-align: center;
  padding: 12px;
  margin-top: 24px;
  background: linear-gradient(100deg, #16e0d4, #0095f0);
  color: #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.btn-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.panel-wrap {
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  justify-content: center;
}

.panel {
  width: 100%;
  max-width: 760px;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 31, 49, 0.85), rgba(8, 18, 31, 0.75));
  border: 1px solid rgba(158, 205, 238, 0.18);
  backdrop-filter: blur(14px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 40px rgba(255, 255, 255, 0.02);
}

.panel h1,
.panel .subtitle {
  text-align: left;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

@media (max-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.success-box {
  background: rgba(0, 220, 180, 0.12);
  color: #7df0d0;
  border: 1px solid rgba(0, 220, 180, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: center;
}

.worker-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.worker-table th,
.worker-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(158, 205, 238, 0.12);
  color: #e8f4fb;
}

.worker-table th {
  color: #7f9bb5;
  font-weight: 600;
  font-size: 13px;
}

.worker-table-wrap {
  overflow-x: auto;
}

.empty-state {
  color: #7f9bb5;
  font-size: 14px;
  padding: 16px 0;
  text-align: center;
}

html[data-lang="ko"] .lang-zh {
  display: none;
}

html[data-lang="zh"] .lang-ko {
  display: none;
}
