/* Login: patio photo, dark glass panel on the right, V&V red wave at the bottom (always dark). (Toky, 2026-11-18) */
.login-body {
  --vv-red: #7b0202;          /* red of the V&V logo */
  --vv-red-lit: #c41212;      /* same red, lifted so it reads on the dark panel */
  --vv-red-glow: rgba(196, 18, 18, .45);
  --login-ink: #f5f6f8; --login-muted: rgba(235, 238, 244, .72);
  --login-field: rgba(255, 255, 255, .07); --login-line: rgba(255, 255, 255, .14);
  margin: 0; background: #07080b; color: var(--login-ink); color-scheme: dark;
}
.login-page {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 600px); gap: 2rem;
  padding: clamp(1rem, 3vh, 2.5rem) clamp(1.25rem, 13vw, 16rem) clamp(3rem, 7vh, 5rem) clamp(1.25rem, 5vw, 5.5rem);
  background:
    linear-gradient(90deg, rgba(4, 5, 8, .05) 0%, rgba(4, 5, 8, .25) 45%, rgba(4, 5, 8, .82) 72%, rgba(4, 5, 8, .92) 100%),
    linear-gradient(180deg, rgba(4, 5, 8, .15) 0%, rgba(4, 5, 8, 0) 40%, rgba(4, 5, 8, .7) 100%),
    url('brand/login-bg.jpg') center / cover no-repeat, #07080b;
}

/* Left: the photo, with the three icons at the bottom */
.login-side { position: relative; z-index: 2; display: flex; align-items: flex-end; }
.login-features { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.login-features li {
  display: flex; flex-direction: column; align-items: center; gap: .7rem; min-width: 150px; padding: 0 1.6rem;
  color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.25; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}
.login-features li + li { border-left: 1px solid rgba(255, 255, 255, .35); }
.login-features li:first-child { padding-left: 0; }
.login-features svg { width: 46px; height: 46px; stroke-width: 1.4; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }

/* Right: logo, tagline and the glass card */
.login-panel { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
.login-brand { text-align: center; }
.login-logo { display: block; width: 200px; height: auto; margin: 0 auto .8rem; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .65)); }
.login-tagline { margin: 0; color: #fff; font-size: 1.08rem; font-weight: 700; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.login-tagline small { font-size: .9rem; font-weight: 600; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }

.login-card {
  width: 100%; max-width: 520px; padding: 2.2rem 2.5rem 1.5rem; border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 32, 38, .78), rgba(10, 11, 14, .86));
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.login-title { margin: 0 0 .3rem; color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.5rem); font-weight: 750; letter-spacing: -.02em; }
.login-subtitle { margin: 0 0 1.75rem; color: var(--login-muted); font-size: 1.05rem; }

.login-alert { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; padding: .8rem 1rem; border-left: 4px solid var(--vv-red-lit); border-radius: 10px; background: rgba(196, 18, 18, .16); color: #ffd5d5; font-weight: 500; }
.login-alert svg { flex: 0 0 auto; width: 18px; height: 18px; }
.login-alert.login-maint { align-items: flex-start; border-left-color: #f59e0b; background: rgba(245, 158, 11, .14); color: #fde7b0; }
.login-alert.login-maint b { font-weight: 700; }

.login-form { display: grid; gap: 1.15rem; }
.login-field { position: relative; }
.login-field .field-icon, .login-field > svg:first-child { position: absolute; left: 1rem; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: rgba(255, 255, 255, .75); pointer-events: none; }
.login-field input {
  width: 100%; min-height: 58px; padding: 0 3.4rem 0 3.1rem; border: 1px solid var(--login-line); border-radius: 10px; outline: 0;
  background: var(--login-field); color: #fff; font-size: 1.05rem; box-sizing: border-box; transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-field input::placeholder { color: rgba(255, 255, 255, .7); }
.login-field input:focus { border-color: var(--vv-red-lit); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(196, 18, 18, .22); }
.login-field input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #23252b inset; caret-color: #fff; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer; }
.password-toggle:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.password-toggle svg { width: 19px; height: 19px; }

.login-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .1rem 0 .3rem; font-size: .95rem; }
.remember { display: inline-flex; align-items: center; gap: .55rem; color: rgba(255, 255, 255, .88); cursor: pointer; }
.remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--vv-red-lit); }
.login-options a { color: rgba(255, 255, 255, .88); font-weight: 500; text-decoration: none; }
.login-options a:hover { color: #fff; text-decoration: underline; }

.login-submit {
  min-height: 58px; border: 0; border-radius: 10px; cursor: pointer; color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: .01em;
  background: linear-gradient(180deg, #d81818 0%, var(--vv-red-lit) 45%, var(--vv-red) 100%);
  box-shadow: 0 10px 26px var(--vv-red-glow), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s, box-shadow .2s, filter .2s;
}
.login-submit:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 32px rgba(196, 18, 18, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.login-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.login-footer { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); font-size: .9rem; }
.login-footer svg { width: 16px; height: 16px; }

/* Red wave along the bottom */
.login-wave { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: clamp(90px, 15vh, 170px); pointer-events: none; filter: drop-shadow(0 -6px 22px rgba(196, 18, 18, .35)); }

@media (max-width: 991.98px) {
  .login-page {
    grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem 7rem;
    background:
      linear-gradient(180deg, rgba(4, 5, 8, .35) 0%, rgba(4, 5, 8, .78) 45%, rgba(4, 5, 8, .92) 100%),
      url('brand/login-bg.jpg') center / cover no-repeat, #07080b;
  }
  .login-panel { order: 1; }
  .login-side { order: 2; justify-content: center; }
  .login-logo { width: 170px; }
  .login-card { padding: 1.6rem 1.25rem 1.2rem; }
  .login-features li { min-width: 0; padding: 0 1rem; font-size: .82rem; }
  .login-features svg { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
  .login-options { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .login-features li { padding: 0 .65rem; }
}
