/* Login screen (#authView) — rebuilt 2026-09-27 as a single clean card, replacing the old split hero/capabilities layout. */

.auth-view{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(900px 620px at 105% 15%, rgba(22,163,182,.20), transparent 55%),
    radial-gradient(800px 560px at 50% 120%, rgba(6,60,110,.16), transparent 60%),
    linear-gradient(160deg, #dcedfa 0%, #b9dcf5 45%, #9dcbef 100%);
}
.auth-view::before,
.auth-view::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:.5;
  pointer-events:none;
}
.auth-view::before{
  width:420px;
  height:420px;
  top:-140px;
  inset-inline-start:-120px;
  background:radial-gradient(circle at 30% 30%, rgba(22,163,182,.16), transparent 70%);
}
.auth-view::after{
  width:520px;
  height:520px;
  bottom:-200px;
  inset-inline-end:-160px;
  background:radial-gradient(circle at 70% 70%, rgba(11,110,168,.14), transparent 70%);
}

.auth-lang-toggle{
  position:absolute;
  top:26px;
  inset-inline-end:26px;
  z-index:2;
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 16px 9px 12px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:999px;
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 10px 26px rgba(9,50,90,.14);
  cursor:pointer;
  transition:transform .15s,box-shadow .15s,background .15s;
}
.auth-lang-toggle:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.75);
  box-shadow:0 14px 32px rgba(9,50,90,.18);
}
.auth-lang-toggle:active{transform:translateY(0)}
.auth-lang-icon{
  width:26px;
  height:26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  flex:none;
}
.auth-lang-copy{display:flex;flex-direction:column;line-height:1.2;text-align:start}
.auth-lang-copy b{font-size:12.5px;font-weight:700;color:var(--ink)}
.auth-lang-copy small{font-size:10px;color:var(--muted);letter-spacing:.5px}

@media(max-width:520px){
  .auth-lang-toggle{top:16px;inset-inline-end:16px;padding:7px 12px 7px 9px}
  .auth-lang-copy small{display:none}
}

.auth-card{
  position:relative;
  width:100%;
  max-width:430px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 24px 60px rgba(15,60,90,.10);
  padding:36px 32px 30px;
  display:flex;
  flex-direction:column;
  gap:22px;
}

.auth-brand{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.auth-brand-mark{
  width:68px;
  height:68px;
  object-fit:contain;
  background:none;
  margin:0;
}

.auth-brand-hero{
  width:100%;
  position:relative;
  padding:16px 18px 18px;
  border-radius:20px;
  border:1px solid rgba(38,125,170,.20);
  background:linear-gradient(135deg,rgba(18,103,157,.08),rgba(39,213,255,.04));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 16px 38px rgba(17,87,129,.08);
  overflow:hidden;
}
.auth-brand-hero::before{
  content:"";
  position:absolute;
  inset:auto -40px -60px auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(39,213,255,.18),transparent 68%);
  pointer-events:none;
}
.auth-brand-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(39,213,255,.18);
  background:rgba(255,255,255,.58);
  color:#0e5b86;
  font-size:11px;
  font-weight:800;
  letter-spacing:1.2px;
  margin-bottom:14px;
}
.auth-brand-lockup-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
}
.auth-brand-emblem{
  width:86px;
  height:86px;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(226,244,250,.64));
  border:1px solid rgba(39,213,255,.18);
  box-shadow:0 12px 28px rgba(13,86,126,.12);
  flex:0 0 86px;
}
.auth-brand-lockup img{
  display:block;
  width:min(100%,220px);
  height:auto;
  object-fit:contain;
}
.auth-brand-lockup-dark{display:none}
.auth-brand h1{
  margin:0;
  font-size:26px;
  font-weight:900;
  letter-spacing:.3px;
  color:var(--ink);
}
.auth-brand p{
  margin:0;
  font-size:13px;
  color:var(--muted);
}

#loginForm{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.auth-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.auth-field-label{
  font-size:12px;
  font-weight:600;
  color:var(--muted);
}
.auth-field input{
  height:44px;
  border:1px solid var(--line);
  border-radius:11px;
  padding:0 14px;
  font-size:13.5px;
  color:var(--ink);
  background:#fff;
  transition:border-color .15s,box-shadow .15s;
}
.auth-field input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(11,110,168,.14);
}
.auth-field input::placeholder{color:#9fb1c0}

.auth-password-input{position:relative;display:flex;align-items:center}
.auth-password-input input{width:100%;padding-inline-end:42px}
.auth-password-input button{
  position:absolute;
  inset-inline-end:4px;
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  border-radius:8px;
  color:var(--muted);
  font-size:15px;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.auth-password-input button:hover{background:var(--bg);color:var(--ink)}

.auth-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}
.auth-options label{display:flex;align-items:center;gap:6px;cursor:pointer}
.auth-options input[type="checkbox"]{width:14px;height:14px;accent-color:var(--primary)}
.auth-options button{
  border:0;
  background:none;
  color:var(--primary);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  padding:0;
}
.auth-options button:hover{text-decoration:underline}

.auth-error{
  font-size:12px;
  color:#8a1f28;
  background:#fde9ea;
  border:1px solid #f6c6ca;
  border-radius:9px;
  padding:9px 12px;
}

.auth-submit{
  height:46px;
  border:0;
  border-radius:11px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:filter .15s,transform .15s;
}
.auth-submit:hover{filter:brightness(1.06)}
.auth-submit:active{transform:translateY(1px)}

@media(max-width:420px){
  .auth-card{padding:28px 22px 22px;border-radius:16px}
}

body[data-theme="dark"] .auth-view,
body.theme-dark .auth-view{
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(8,185,240,.18), transparent 60%),
    radial-gradient(900px 620px at 105% 15%, rgba(8,185,240,.14), transparent 55%),
    radial-gradient(800px 560px at 50% 120%, rgba(8,185,240,.10), transparent 60%),
    linear-gradient(160deg, #0b2138 0%, #0a3357 55%, #0c4571 100%);
}
body[data-theme="dark"] .auth-view::before,
body.theme-dark .auth-view::before,
body[data-theme="dark"] .auth-view::after,
body.theme-dark .auth-view::after{
  background:radial-gradient(circle at 40% 40%, rgba(8,185,240,.14), transparent 70%);
}
body[data-theme="dark"] .auth-card,
body.theme-dark .auth-card{
  background:var(--secura-panel);
  border-color:var(--secura-line);
  color:var(--secura-text);
}
body[data-theme="dark"] .auth-brand h1,
body.theme-dark .auth-brand h1{color:var(--secura-text)}
body[data-theme="dark"] .auth-brand p,
body[data-theme="dark"] .auth-field-label,
body[data-theme="dark"] .auth-options,
body.theme-dark .auth-brand p,
body.theme-dark .auth-field-label,
body.theme-dark .auth-options{color:var(--secura-muted)}
body[data-theme="dark"] .auth-field input,
body.theme-dark .auth-field input{
  background:var(--secura-bg2);
  border-color:var(--secura-line);
  color:var(--secura-text);
}
body[data-theme="dark"] .auth-password-input button:hover,
body.theme-dark .auth-password-input button:hover{background:var(--secura-bg2);color:var(--secura-text)}

body[data-theme="dark"] .auth-lang-toggle,
body.theme-dark .auth-lang-toggle{
  background:rgba(11,42,67,.6);
  border-color:rgba(8,185,240,.28);
  box-shadow:0 10px 26px rgba(0,0,0,.28);
}
body[data-theme="dark"] .auth-lang-toggle:hover,
body.theme-dark .auth-lang-toggle:hover{background:rgba(11,42,67,.82)}
body[data-theme="dark"] .auth-lang-copy b,
body.theme-dark .auth-lang-copy b{color:var(--secura-text)}
body[data-theme="dark"] .auth-lang-copy small,
body.theme-dark .auth-lang-copy small{color:var(--secura-muted)}


/* Login branding: single professional watermark, no repeated visible logos */
.auth-page-watermark{
  position:absolute;
  z-index:0;
  width:min(66vw,720px);
  height:auto;
  object-fit:contain;
  opacity:.055;
  filter:saturate(.85) contrast(1.06);
  pointer-events:none;
  user-select:none;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}
.auth-card{z-index:1;overflow:hidden;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.auth-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.50));
  z-index:-1;
}
.auth-brand{position:relative;z-index:1;padding-top:2px}
.auth-brand h1{font-size:30px;letter-spacing:.4px}
.auth-brand p{font-size:13.5px}
.auth-brand-hero,.auth-brand-lockup-wrap,.auth-brand-badge,.auth-brand-emblem,.auth-brand-lockup{display:none!important}
body[data-theme="dark"] .auth-page-watermark,body.theme-dark .auth-page-watermark{opacity:.095;filter:saturate(1.15) brightness(1.2)}
body[data-theme="dark"] .auth-card::before,body.theme-dark .auth-card::before{background:linear-gradient(145deg,rgba(7,31,49,.88),rgba(7,38,59,.76))}
@media(max-width:520px){.auth-page-watermark{width:min(92vw,560px);opacity:.045}.auth-card{max-width:390px}.auth-brand h1{font-size:27px}}


/* Login page refinement: move card to the right, stronger watermark, clearer text */
.auth-view{
  justify-content:flex-end;
  padding-inline:clamp(28px,7vw,120px);
  background:
    radial-gradient(680px 420px at 90% 8%, rgba(61,180,255,.18), transparent 60%),
    radial-gradient(760px 520px at 8% 92%, rgba(0,119,255,.12), transparent 60%),
    linear-gradient(145deg,#071d31 0%,#0a2b46 50%,#0c3d63 100%);
}
.auth-view::before{
  width:560px;
  height:560px;
  top:-180px;
  inset-inline-start:-160px;
  background:radial-gradient(circle at 35% 35%, rgba(34,216,255,.16), transparent 72%);
  opacity:.72;
}
.auth-view::after{
  width:620px;
  height:620px;
  bottom:-260px;
  inset-inline-end:-140px;
  background:radial-gradient(circle at 50% 50%, rgba(32,164,255,.14), transparent 72%);
  opacity:.72;
}
.auth-page-watermark{
  width:min(70vw,860px);
  left:47%;
  top:55%;
  opacity:.16;
  filter:saturate(1.25) brightness(1.16) contrast(1.08) drop-shadow(0 10px 40px rgba(10,35,52,.24));
}
.auth-card{
  margin-inline-start:auto;
  margin-inline-end:clamp(8px,5vw,72px);
  max-width:440px;
  border-color:rgba(71,185,255,.26);
  box-shadow:0 28px 70px rgba(1,18,32,.40);
}
.auth-card::before{
  background:linear-gradient(145deg,rgba(6,28,44,.90),rgba(5,38,60,.82));
}
.auth-brand h1{
  color:#f4fbff;
  text-shadow:0 2px 10px rgba(0,0,0,.18);
}
.auth-brand p,.auth-field-label,.auth-options,.auth-lang-copy b,.auth-lang-copy small{
  color:#c9deed;
}
.auth-field input{
  background:rgba(6,38,58,.84);
  border-color:rgba(77,186,255,.28);
  color:#f2fbff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.auth-field input::placeholder{color:#9fc4da}
.auth-password-input button{color:#e2f7ff}
.auth-password-input button:hover{background:rgba(10,52,79,.82);color:#fff}
.auth-submit{box-shadow:0 12px 30px rgba(26,188,255,.22)}
.auth-lang-toggle{
  background:rgba(8,40,63,.76);
  border-color:rgba(69,184,255,.28);
  box-shadow:0 12px 28px rgba(0,0,0,.24);
}
.auth-lang-toggle:hover{background:rgba(8,40,63,.92)}
.auth-lang-copy b{color:#f3fbff}
.auth-lang-copy small{color:#a8cadf}
body[data-theme="dark"] .auth-view,
body.theme-dark .auth-view{
  justify-content:flex-end;
  padding-inline:clamp(28px,7vw,120px);
  background:
    radial-gradient(680px 420px at 90% 8%, rgba(61,180,255,.18), transparent 60%),
    radial-gradient(760px 520px at 8% 92%, rgba(0,119,255,.12), transparent 60%),
    linear-gradient(145deg,#071d31 0%,#0a2b46 50%,#0c3d63 100%);
}
body[data-theme="dark"] .auth-page-watermark,
body.theme-dark .auth-page-watermark{
  opacity:.18;
  filter:saturate(1.28) brightness(1.22) contrast(1.08) drop-shadow(0 10px 40px rgba(0,0,0,.32));
}
body[data-theme="dark"] .auth-card,
body.theme-dark .auth-card{border-color:rgba(71,185,255,.26);box-shadow:0 28px 70px rgba(1,18,32,.44)}
body[data-theme="dark"] .auth-brand p,
body[data-theme="dark"] .auth-field-label,
body[data-theme="dark"] .auth-options,
body.theme-dark .auth-brand p,
body.theme-dark .auth-field-label,
body.theme-dark .auth-options{color:#c9deed}
@media(max-width:900px){
  .auth-view{justify-content:center;padding-inline:24px}
  .auth-card{margin-inline:auto}
  .auth-page-watermark{left:50%;top:58%;width:min(84vw,720px);opacity:.12}
}
@media(max-width:520px){
  .auth-page-watermark{width:min(96vw,560px);opacity:.085}
}


/* Centered normal logo on login page, no watermark */
.auth-view{
  justify-content:flex-start;
  padding-inline-start:clamp(32px,6vw,120px);
  padding-inline-end:clamp(32px,5vw,72px);
}
.auth-page-logo{
  position:absolute;
  inset-inline-start:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:0;
  width:min(44vw,640px);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:1;
  filter:drop-shadow(0 14px 34px rgba(5,28,44,.24));
}
.auth-page-logo img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
.auth-page-logo-dark{display:none}
.auth-card{
  position:relative;
  z-index:1;
  margin-inline:0;
  max-width:430px;
  box-shadow:0 24px 60px rgba(2,20,35,.28);
}
.auth-brand h1{color:#f4fbff}
.auth-brand p,.auth-field-label,.auth-options{color:#c8dced}
.auth-field input{background:rgba(4,37,58,.88);border-color:rgba(64,176,245,.26);color:#f4fbff}
.auth-field input::placeholder{color:#a7c3d8}
.auth-lang-toggle{z-index:2}
body[data-theme="dark"] .auth-page-logo-light,
body.theme-dark .auth-page-logo-light{display:none}
body[data-theme="dark"] .auth-page-logo-dark,
body.theme-dark .auth-page-logo-dark{display:block}
@media (max-width:1100px){
  .auth-page-logo{width:min(48vw,520px);inset-inline-start:58%}
}
@media (max-width:900px){
  .auth-view{justify-content:center;padding-inline:24px}
  .auth-card{margin-inline:auto}
  .auth-page-logo{position:relative;inset:auto;top:auto;transform:none;width:min(74vw,420px);margin:0 auto 24px;order:-1}
  .auth-view{flex-direction:column}
}
@media (max-width:520px){
  .auth-page-logo{width:min(82vw,320px);margin-bottom:18px}
}


/* FINAL LOGIN LAYOUT FIX — 2026-09-28 */
.auth-view{
  display:block!important;
  position:relative!important;
  min-height:100vh!important;
  padding:0!important;
  overflow:hidden!important;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(16,132,204,.15), transparent 62%),
    radial-gradient(760px 520px at 88% 88%, rgba(20,187,216,.10), transparent 64%),
    linear-gradient(145deg,#071b2e 0%,#0a2943 48%,#0b3658 100%)!important;
}
.auth-page-logo{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:min(42vw,560px)!important;
  max-height:72vh!important;
  z-index:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  opacity:1!important;
  pointer-events:none!important;
  filter:drop-shadow(0 18px 34px rgba(0,0,0,.28))!important;
}
.auth-page-logo-main{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:72vh!important;
  object-fit:contain!important;
  opacity:1!important;
}
.auth-page-logo-light,.auth-page-logo-dark,.auth-page-watermark{display:none!important}
.auth-card{
  position:absolute!important;
  right:clamp(40px,6vw,110px)!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:min(430px,calc(100vw - 80px))!important;
  max-width:430px!important;
  margin:0!important;
  z-index:3!important;
  background:rgba(6,29,46,.94)!important;
  border:1px solid rgba(62,184,245,.30)!important;
  box-shadow:0 30px 80px rgba(0,0,0,.42)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
.auth-card::before{
  background:linear-gradient(145deg,rgba(7,31,49,.96),rgba(5,40,62,.90))!important;
}
.auth-brand h1{color:#ffffff!important;text-shadow:none!important}
.auth-brand p,.auth-field-label,.auth-options{color:#cfe4f2!important}
.auth-field input{
  background:rgba(4,35,54,.96)!important;
  border-color:rgba(75,185,246,.30)!important;
  color:#ffffff!important;
}
.auth-field input::placeholder{color:#9fc0d5!important}
.auth-options button{color:#35c7ff!important}
.auth-submit{box-shadow:0 12px 30px rgba(31,190,255,.22)!important}
.auth-lang-toggle{z-index:5!important}
body[data-theme="dark"] .auth-view,body.theme-dark .auth-view{
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(16,132,204,.15), transparent 62%),
    radial-gradient(760px 520px at 88% 88%, rgba(20,187,216,.10), transparent 64%),
    linear-gradient(145deg,#071b2e 0%,#0a2943 48%,#0b3658 100%)!important;
}
@media(max-width:1050px){
  .auth-page-logo{left:42%!important;width:min(40vw,460px)!important}
  .auth-card{right:28px!important}
}
@media(max-width:820px){
  .auth-view{overflow:auto!important;padding:88px 22px 28px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:26px!important}
  .auth-page-logo{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:min(70vw,360px)!important;max-height:none!important;order:0!important}
  .auth-card{position:relative!important;right:auto!important;top:auto!important;transform:none!important;width:min(430px,100%)!important;order:1!important}
}
