*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.login-logo {
  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.login-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 28px;
}

.login-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 15px;
  font-family: inherit;
  color: #94a3b8;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.login-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.form-hint {
  font-size: 16px;
  font-weight: 400;
  color: #94a3b8;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}

.form-input:focus { border-color: #2563eb; }

.input-pw-wrap { position: relative; display: flex; align-items: center; }

.input-pw-wrap .form-input { padding-right: 64px; }

.pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
}

.pw-toggle:hover { color: #2563eb; }

.auth-error {
  min-height: 18px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
  margin-top: -8px;
}

.btn-submit {
  width: 100%;
  height: 46px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}

.btn-submit:hover:not(:disabled) { background: #1d4ed8; }
.btn-submit:disabled { background: #93c5fd; cursor: not-allowed; }
