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

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
}

body.dark-mode {
  background: linear-gradient(145deg, #06152B, #0A1E3C);
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0B1F3B, #071426);
  padding: 20px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 25px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.auth-logo img {
  width: 90px;
  height: auto;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
}

.auth-card h2,
.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-top: -18px;
  margin-bottom: 28px;
}

.auth-card form {
  display: flex;
  flex-direction: column;
}

.auth-card input {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input::placeholder {
  color: rgba(255,255,255,0.35);
}

.auth-card input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(27,139,255,0.2);
}

.auth-card button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  background: #1B8BFF;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  margin-top: 4px;
}

.auth-card button:hover {
  background: #1575D4;
  transform: translateY(-2px);
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
}

.auth-footer a {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer a strong {
  color: var(--brand-primary);
  font-weight: 600;
}

.auth-footer a:hover {
  color: rgba(255,255,255,0.7);
}

.biometric-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.biometric-btn::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(27,139,255,0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.biometric-btn:active::before {
  width: 300px;
  height: 300px;
}

.biometric-btn:hover {
  border-color: rgba(27,139,255,0.4);
  color: #fff;
  transform: translateY(-2px);
}

.biometric-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

body:not(.dark-mode) .auth-wrapper {
  background: linear-gradient(135deg, #EAF4FF, #F5F9FF);
}

body:not(.dark-mode) .auth-card {
  background: white;
  border: 1px solid #E1E8F0;
}

body:not(.dark-mode) .auth-card h2,
body:not(.dark-mode) .auth-title {
  color: #1A2A3A;
}

body:not(.dark-mode) .auth-subtitle {
  color: #64748B;
}

body:not(.dark-mode) .auth-card input {
  background: #F4F7FB;
  color: #1A2A3A;
  border-color: #E1E8F0;
}

body:not(.dark-mode) .auth-card input::placeholder {
  color: #94A3B8;
}

body:not(.dark-mode) .auth-footer a {
  color: #64748B;
}

body:not(.dark-mode) .auth-divider {
  color: #94A3B8;
}

body:not(.dark-mode) .auth-divider::before,
body:not(.dark-mode) .auth-divider::after {
  background: #E1E8F0;
}

body:not(.dark-mode) .biometric-btn {
  background: #F4F7FB;
  border-color: #E1E8F0;
  color: #1A2A3A;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 25px;
    border-radius: 18px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-logo img {
    width: 72px;
  }
}
