/* Auth pages — glass card, blue glow */

.ld-auth {
  min-height: 100vh;
  background: #050a18;
}

.ld-auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
}

.ld-auth-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.ld-auth-glow--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: rgba(37, 99, 235, 0.35);
}

.ld-auth-glow--2 {
  width: 360px;
  height: 360px;
  bottom: -10%;
  right: -5%;
  background: rgba(59, 130, 246, 0.22);
}

.ld-auth-glow--3 {
  width: 280px;
  height: 280px;
  top: 40%;
  right: 15%;
  background: rgba(30, 64, 175, 0.2);
}

.ld-auth-card--register {
  max-width: 440px;
}

.ld-auth-card--register .ld-auth-field {
  margin-bottom: 0.95rem;
}

.ld-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2rem 2rem;
  border-radius: 1.5rem;
  background: rgba(10, 18, 38, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(37, 99, 235, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.ld-auth-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.ld-auth-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.ld-auth-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.ld-auth-brand-name span {
  color: #facc15;
}

.ld-auth-tagline {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

.ld-auth-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.ld-auth-subheading {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 0 1.5rem;
}

.ld-auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.ld-auth-field {
  margin-bottom: 1.1rem;
}

.ld-auth-input-wrap {
  position: relative;
}

.ld-auth-field-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s;
}

.ld-auth-input {
  width: 100%;
  padding: 0.72rem 2.75rem 0.72rem 2.65rem;
  font-size: 0.9rem;
  color: #f1f5f9;
  background: rgba(2, 8, 24, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 0.65rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ld-auth-input::placeholder {
  color: #475569;
}

.ld-auth-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.ld-auth-input-wrap:focus-within .ld-auth-field-icon {
  color: #60a5fa;
}

.ld-auth-input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.ld-auth-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  color: #64748b;
  cursor: pointer;
  line-height: 0;
  transition: color 0.2s;
}

.ld-auth-toggle-pw:hover {
  color: #94a3b8;
}

.ld-auth-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 0.35rem;
}

.ld-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.ld-auth-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  cursor: pointer;
}

.ld-auth-check input {
  width: 1rem;
  height: 1rem;
  accent-color: #3b82f6;
  cursor: pointer;
}

.ld-auth-check span {
  font-size: 0.85rem;
  color: #e2e8f0;
}

.ld-auth-forgot {
  font-size: 0.85rem;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s;
}

.ld-auth-forgot:hover {
  color: #60a5fa;
}

.ld-auth-submit {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.45);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.ld-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.55);
  filter: brightness(1.05);
}

.ld-auth-submit:active {
  transform: translateY(0);
}

.ld-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.ld-auth-divider::before,
.ld-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(71, 85, 105, 0.4);
}

.ld-auth-divider span {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
}

.ld-auth-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ld-auth-social-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.45);
  color: #e2e8f0;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.ld-auth-social-btn:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.ld-auth-footer {
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
}

.ld-auth-footer a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
}

.ld-auth-footer a:hover {
  color: #60a5fa;
}

.ld-auth-alert {
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

@media (max-width: 480px) {
  .ld-auth-card {
    padding: 1.75rem 1.35rem 1.5rem;
  }

  .ld-auth-heading {
    font-size: 1.45rem;
  }
}
