/* Aurora Mail – Login Screen (Aurora / Night / Security) */

:root {
  --aurora-bg-0: #05070b;
  --aurora-bg-1: #08101f;
  --aurora-bg-2: #0a0f14;
  --aurora-text: #e6eaf3;
  --aurora-text-muted: rgba(230, 234, 243, 0.68);
  --aurora-text-faint: rgba(230, 234, 243, 0.46);

  --aurora-accent: #4b86ff;
  --aurora-accent-2: #6aa8ff;
  --aurora-accent-3: #63d1ff;

  --aurora-card-bg: rgba(18, 22, 32, 0.48);
  --aurora-card-border: rgba(255, 255, 255, 0.10);
  --aurora-card-blur: blur(18px);
  --aurora-shadow: 0 18px 70px rgba(0,0,0,0.42);
  --aurora-shadow-soft: 0 10px 34px rgba(0,0,0,0.26);

  --aurora-input-bg: rgba(10, 14, 20, 0.66);
  --aurora-input-border: rgba(255, 255, 255, 0.10);
  --aurora-input-border-focus: rgba(106, 168, 255, 0.46);

  --aurora-noise-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  --aurora-login-bg-image: url('/assets/tlo.jpg');
}

body.aurora-login {
  color-scheme: dark;
  background-image:
    radial-gradient(1200px 700px at 18% -10%, rgba(75, 134, 255, 0.18), rgba(75, 134, 255, 0) 58%),
    radial-gradient(900px 520px at 78% 12%, rgba(106, 168, 255, 0.12), rgba(106, 168, 255, 0) 58%),
    radial-gradient(920px 520px at 55% 92%, rgba(99, 209, 255, 0.10), rgba(99, 209, 255, 0) 60%),
    linear-gradient(145deg, rgba(5, 7, 11, 0.50) 0%, rgba(10, 15, 20, 0.62) 62%, rgba(5, 7, 11, 0.78) 100%),
    var(--aurora-login-bg-image),
    linear-gradient(145deg, var(--aurora-bg-1) 0%, var(--aurora-bg-2) 62%, var(--aurora-bg-0) 100%);
  background-position:
    18% -10%,
    78% 12%,
    55% 92%,
    center,
    center,
    center;
  background-size:
    auto,
    auto,
    auto,
    auto,
    cover,
    auto;
  background-repeat: no-repeat;
  background-blend-mode:
    normal,
    normal,
    normal,
    normal,
    soft-light,
    normal;
  background-attachment:
    scroll,
    scroll,
    scroll,
    scroll,
    fixed,
    scroll;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--aurora-text);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.aurora-login,
body.aurora-login *,
body.aurora-login *::before,
body.aurora-login *::after {
  box-sizing: border-box;
}

body.aurora-login::before,
body.aurora-login::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.aurora-login::before {
  background-image: var(--aurora-noise-url);
  opacity: 0.06;
  mix-blend-mode: overlay;
}

body.aurora-login::after {
  background:
    radial-gradient(1200px 800px at 50% 10%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.40) 100%),
    radial-gradient(900px 700px at 50% 110%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.52) 100%);
  opacity: 0.92;
}

.aurora-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  filter: blur(0.15px);
}

.aurora-login-card {
  position: relative;
  background: var(--aurora-card-bg);
  box-shadow: var(--aurora-shadow);
  border-radius: 24px;
  border: 1px solid var(--aurora-card-border);
  backdrop-filter: var(--aurora-card-blur) saturate(1.15);
  -webkit-backdrop-filter: var(--aurora-card-blur) saturate(1.15);
  padding: 46px 38px 34px 38px;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.aurora-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(106, 168, 255, 0.32),
    rgba(75, 134, 255, 0.08) 38%,
    rgba(99, 209, 255, 0.16)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.aurora-login-card::after {
  content: "";
  position: absolute;
  inset: -80px -120px auto -120px;
  height: 220px;
  background:
    radial-gradient(closest-side at 35% 45%, rgba(75, 134, 255, 0.26), rgba(75, 134, 255, 0) 70%),
    radial-gradient(closest-side at 65% 55%, rgba(99, 209, 255, 0.18), rgba(99, 209, 255, 0) 72%);
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}

.aurora-login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--aurora-text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 38px rgba(0,0,0,0.40);
}

.aurora-login-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 24px rgba(0,0,0,0.38))
    drop-shadow(0 0 18px rgba(75, 134, 255, 0.18));
}

.aurora-login-logo-text {
  line-height: 1;
}

.aurora-wordmark{
  display: block;
  height: 26px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.38));
}

.aurora-wordmark-light{ display: none; }

@media (prefers-color-scheme: light){
  .aurora-wordmark-dark{ display: none; }
  .aurora-wordmark-light{ display: block; }
}

.aurora-login-logo .aurora-logo-accent {
  background: linear-gradient(135deg, var(--aurora-accent) 0%, var(--aurora-accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aurora-login-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--aurora-text);
  letter-spacing: 0.01em;
}

.aurora-login-subtitle {
  margin: 0 0 26px 0;
  color: var(--aurora-text-muted);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.aurora-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aurora-login-flash {
  width: 100%;
  margin: 10px 0 4px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 77, 109, 0.10);
  border: 1px solid rgba(255, 77, 109, 0.22);
  color: rgba(230, 234, 243, 0.92);
  box-shadow: 0 14px 40px rgba(0,0,0,0.26);
}

.aurora-input-group {
  position: relative;
  width: 100%;
}
.aurora-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(106, 168, 255, 0.92);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aurora-input-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  opacity: 0.95;
}

.aurora-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: var(--aurora-input-bg);
  border: 1px solid var(--aurora-input-border);
  border-radius: 14px;
  color: var(--aurora-text);
  font-size: 1.08rem;
  outline: none;
  margin-bottom: 0;
  box-shadow: var(--aurora-shadow-soft);
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

#auroraPassword {
  padding-right: 54px;
}
.aurora-input:focus {
  border-color: var(--aurora-input-border-focus);
  box-shadow:
    0 0 0 4px rgba(75, 134, 255, 0.14),
    0 18px 54px rgba(0, 0, 0, 0.38);
}

.aurora-input::placeholder {
  color: rgba(230, 234, 243, 0.38);
}

.aurora-input:-webkit-autofill,
.aurora-input:-webkit-autofill:hover,
.aurora-input:-webkit-autofill:focus,
.aurora-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--aurora-text);
  caret-color: var(--aurora-text);
  transition: background-color 999999s ease-in-out 0s;
  box-shadow:
    0 0 0px 1000px rgba(10, 14, 20, 0.92) inset,
    var(--aurora-shadow-soft);
  border: 1px solid var(--aurora-input-border);
}

.aurora-input-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aurora-text-muted);
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.18s ease-out, background 0.18s ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aurora-input-eye:hover {
  color: rgba(106, 168, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

.aurora-input-eye svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.aurora-input-eye .icon-eye-off {
  display: none;
}

.aurora-input-eye.is-visible .icon-eye {
  display: none;
}

.aurora-input-eye.is-visible .icon-eye-off {
  display: block;
}

.aurora-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -10px;
  margin-bottom: 2px;
  gap: 18px;
}

.aurora-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.aurora-checkbox {
  accent-color: var(--aurora-accent);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  margin: 0;
}
.aurora-checkbox-label {
  color: var(--aurora-text-muted);
  font-size: 1rem;
  user-select: none;
}
.aurora-login-link {
  color: var(--aurora-text-faint);
  font-size: 0.98rem;
  text-decoration: none;
  transition: color 0.18s ease-out;
}
.aurora-login-link:hover {
  color: rgba(106, 168, 255, 0.95);
  text-decoration: underline;
}

.aurora-login-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--aurora-accent) 0%, var(--aurora-accent-3) 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 15px 0;
  font-size: 1.13rem;
  font-weight: 600;
  margin-top: 8px;
  box-shadow:
    0 16px 44px rgba(75, 134, 255, 0.18),
    0 10px 34px rgba(0, 0, 0, 0.30);
  cursor: pointer;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, filter 0.16s ease-out;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.aurora-login-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.03);
  box-shadow:
    0 22px 62px rgba(75, 134, 255, 0.24),
    0 18px 54px rgba(0, 0, 0, 0.36);
}

.aurora-login-btn:active {
  transform: translateY(0);
}

.aurora-login-footer {
  margin-top: 38px;
  color: rgba(230, 234, 243, 0.40);
  font-size: 0.92rem;
  text-align: center;
  letter-spacing: 0.01em;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 600px) {
  .aurora-login-card {
    padding: 34px 7vw 26px 7vw;
    max-width: 98vw;
  }
}
