/* Viontec access screen — centered split card inspired by the approved reference. */
:root {
  --yellow: #f5c400;
  --yellow-light: #ffe275;
  --black: #090a0c;
  --black-soft: #191a1e;
  --gold: #dda91f;
  --gold-light: #f6d36a;
  --ink: #1c2541;
  --muted: #8290a8;
  --line: #dce3ee;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { overflow-x: hidden; color: var(--ink); font-family: "Space Grotesk", "Segoe UI", sans-serif; background: var(--black); }
a, button, input { transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(245,196,0,.48); outline-offset: 3px; }

.login-wrapper {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 8% 95%, rgba(245,196,0,.16), transparent 25%),
    radial-gradient(circle at 92% 8%, rgba(221,169,31,.12), transparent 21%),
    linear-gradient(135deg, #030303 0%, #0d0d0d 56%, #000 100%);
}

.login-wrapper::before,
.login-wrapper::after { position: absolute; pointer-events: none; content: ""; }
.login-wrapper::before {
  inset: -22% auto auto -13%;
  width: 50vw;
  height: 50vw;
  border: 28px solid rgba(245,196,0,.13);
  border-radius: 50%;
  box-shadow: 25vw 8vh 0 -2px rgba(245,196,0,.08), 57vw 38vh 0 14px rgba(221,169,31,.1);
  transform: rotate(-17deg);
}
.login-wrapper::after {
  right: 0;
  bottom: 0;
  width: 35vw;
  height: 27vh;
  opacity: .42;
  background-image: radial-gradient(rgba(245,196,0,.42) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  mask-image: linear-gradient(135deg, transparent 5%, #000 65%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
  width: min(1100px, 100%);
  min-height: 540px;
  isolation: isolate;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 45px rgba(18, 15, 3, .3), 0 0 24px rgba(245,196,0,.12);
}

.auth-shell::before {
  position: absolute;
  inset: -90%;
  z-index: 0;
  content: "";
  background: conic-gradient(
    rgba(113,82,0,.58) 0 68%,
    var(--gold) 75%,
    var(--yellow) 81%,
    #fff8ce 85%,
    var(--yellow) 89%,
    var(--gold) 94%,
    rgba(113,82,0,.58) 100%
  );
  animation: auth-border-spin 3.2s linear infinite;
  transform-origin: center;
}

.brand-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 46px 54px 38px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 9% 91%, rgba(246,211,106,.13), transparent 28%),
    linear-gradient(145deg, #050505 0%, #151515 54%, #080808 100%);
}

.brand-side::before,
.brand-side::after { position: absolute; content: ""; pointer-events: none; }
.brand-side::before {
  top: -78px;
  right: -105px;
  width: 300px;
  height: 300px;
  border: 28px solid rgba(246,211,106,.34);
  border-radius: 50%;
  box-shadow: -170px 170px 0 -5px rgba(246,211,106,.12), -270px 95px 0 -9px rgba(245,196,0,.1);
}
.brand-side::after {
  right: -30px;
  bottom: -42px;
  width: 255px;
  height: 160px;
  border: 20px solid rgba(246,211,106,.3);
  border-radius: 50%;
  transform: rotate(-15deg);
}

.brand-head, .brand-copy, .brand-footer { position: relative; z-index: 1; }
.brand-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo-area { display: flex; align-items: center; }
.brand-logo { display: block; width: 104px; height: 104px; object-fit: cover; background: #050505; box-shadow: 0 12px 24px rgba(0,0,0,.27), 0 0 0 1px rgba(246,211,106,.45); }
.brand-tag { display: none; }

.brand-copy { max-width: 320px; margin-top: auto; margin-bottom: 61px; }
.brand-copy::before { display: block; width: 56px; height: 3px; margin-bottom: 18px; content: ""; background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.brand-eyebrow { display: none; }
.brand-copy h1 { margin: 0; color: #fff; font-size: clamp(38px, 4.2vw, 58px); font-weight: 700; line-height: .9; letter-spacing: -2px; }
.gradient-text { color: var(--gold-light); background: linear-gradient(105deg, #fff2b7, var(--gold-light) 50%, var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-copy p { margin: 20px 0 0; color: rgba(255,255,255,.84); font-size: 12px; line-height: 1.65; }
.brand-illustration { display: none; }
.brand-footer { display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-family: "JetBrains Mono",monospace; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }.brand-footer i { margin-right: 5px; color: var(--gold-light); }

.login-side { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 34px 38px; background: #fff; }
.login-card { width: 100%; }
.card-border-glow { display: none; }
.card-inner { width: 100%; }
.card-topline, .card-logo { display: none; }

.card-header { margin-bottom: 15px; text-align: left; }
.security-badge { display: none; }
.card-header h2 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.7px; }
.card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.divider { display: none; }
.mb-c { margin-bottom: 11px; }
.form-label { display: block; margin-bottom: 4px; color: #536078; font-size: 8px; font-weight: 700; letter-spacing: .05em; }
.form-control { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #d2a900; border-radius: 0; color: var(--ink) !important; font-size: 11px; background: #fff !important; box-shadow: none !important; caret-color: var(--gold); }
.form-control::placeholder { color: #a4adbd; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,196,0,.14) !important; }
.form-control:-webkit-autofill, .form-control:-webkit-autofill:hover, .form-control:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink) !important; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; }
.position-relative .form-control { padding-right: 38px; }
.password-toggle { position: absolute; top: 3px; right: 3px; display: grid; width: 32px; height: 32px; padding: 0; border: 0; place-items: center; color: #7f8ca2; background: transparent; }.password-toggle:hover { color: var(--gold); }
.form-hint { display: none; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.custom-check { display: flex; align-items: center; gap: 5px; color: #69778e; font-size: 8px; cursor: pointer; }.custom-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { display: grid; flex: 0 0 11px; width: 11px; height: 11px; border: 1px solid #c9a20b; place-items: center; background: #fff; }.custom-check input:checked + .checkmark { background: var(--black); }.custom-check input:checked + .checkmark::after { width: 5px; height: 3px; content: ""; border-bottom: 1.5px solid var(--yellow-light); border-left: 1.5px solid var(--yellow-light); transform: rotate(-45deg) translateY(-1px); }
.forgot-link, .link-highlight, .link-button { padding: 0; border: 0; color: #2a2a2a; font-size: 8px; font-weight: 700; text-decoration: none; background: transparent; }.forgot-link:hover, .link-highlight:hover, .link-button:hover { color: var(--gold); text-decoration: underline; }
.btn-login { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 35px; gap: 7px; margin-top: 14px; overflow: hidden; padding: 8px 16px; border: 1px solid var(--black); border-radius: 0; color: var(--yellow-light); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--black); box-shadow: 0 9px 17px rgba(20,17,4,.22); }.btn-login:hover { color: var(--black); background: var(--yellow); transform: translateY(-1px); }.btn-arrow { font-size: 9px; }.btn-ripple { position: absolute; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; background: rgba(255,226,117,.45); transform: scale(0); animation: ripple .6s ease-out forwards; }
.card-footer { display: none; }

.login-side-note { display: none; }

[data-aos] { transition-property: opacity, transform; transition-duration: .65s; transition-timing-function: var(--ease); } [data-aos="fade-up"] { opacity: 0; transform: translate3d(0,16px,0); } [data-aos="fade-down"] { opacity: 0; transform: translate3d(0,-16px,0); } [data-aos="fade-left"] { opacity: 0; transform: translate3d(16px,0,0); } [data-aos="zoom-in"] { opacity: 0; transform: scale(.97); } [data-aos].aos-animate { opacity: 1; transform: none; }

.login-error-modal .modal-content { border: 0; border-radius: 0; }.login-error-modal .modal-header { padding: 18px 21px; border: 0; color: var(--yellow-light); background: var(--black); }.login-error-modal .modal-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }.login-error-modal .btn-close { filter: brightness(0) invert(1); }.login-error-modal .modal-body { padding: 22px; }.login-error-icon { display: grid; width: 48px; height: 48px; margin-bottom: 12px; place-items: center; color: var(--gold); background: #fff6dd; }.login-error-text { color: #5a6577; line-height: 1.6; }.btn-error-modal { padding: 10px 18px; border: 0; border-radius: 0; color: var(--yellow-light); background: var(--black); }
@keyframes ripple { to { opacity: 0; transform: scale(30); } }
@keyframes auth-border-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .login-wrapper { padding: 20px; overflow: auto; }
  .auth-shell { grid-template-columns: 1fr; max-width: 450px; min-height: 0; }
  .brand-side { min-height: 260px; padding: 28px 30px; }
  .brand-copy { margin: auto 0 5px; }.brand-copy h1 { font-size: 41px; }.brand-copy p { max-width: 280px; font-size: 11px; }
  .brand-footer { display: none; }
  .login-side { padding: 31px 28px; }
}

@media (max-width: 420px) {
  .login-wrapper { padding: 0; }.auth-shell { width: 100%; }.brand-side { min-height: 235px; }.brand-head { gap: 8px; }.brand-logo { width: 82px; height: 82px; }.brand-copy h1 { font-size: 37px; }.login-side { padding: 26px 22px; }
}

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