/* v20 auth magic */
body.auth-magic{
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 16%, rgba(255,202,70,.18), transparent 22%),
    radial-gradient(circle at 92% 14%, rgba(255,214,85,.18), transparent 20%),
    radial-gradient(circle at 15% 82%, rgba(119,80,255,.2), transparent 22%),
    radial-gradient(circle at 85% 78%, rgba(255,188,75,.16), transparent 18%),
    linear-gradient(180deg,#070b17 0%,#0f1735 38%,#1d1c52 100%);
  color:#fff;
}
body.auth-magic .site-header{background:rgba(8,10,22,.55);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(18px)}
body.auth-magic .main-nav>a:not(.btn),
body.auth-magic .brand,
body.auth-magic .footer-grid a:not(.brand),
body.auth-magic .footer-grid p,
body.auth-magic .footer-bottom{color:#e8e7f5}
body.auth-magic .site-footer{background:rgba(7,10,24,.7);border-top:1px solid rgba(255,255,255,.06)}
.brand-logo{width:42px;height:42px;display:block;object-fit:contain;flex:none}
.sidebar-brand .brand-logo{width:48px;height:48px}
.auth-card-head .brand-logo{width:74px;height:74px}
.auth-page .brand-mark{display:none}
body.auth-magic .brand strong{color:#f3c34d}
body.auth-magic .btn-ghost{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);color:#fff}
body.auth-magic .btn-ghost:hover{background:rgba(255,255,255,.12)}
body.auth-magic .btn-primary{background:linear-gradient(180deg,#ffd86f 0%,#f0b52a 100%);color:#24160a;border-color:#f3cb59;box-shadow:0 12px 30px rgba(240,181,42,.35)}
body.auth-magic .btn-primary:hover{box-shadow:0 16px 34px rgba(240,181,42,.42)}
body.auth-magic .auth-section{position:relative;padding:80px 0 100px;overflow:hidden}
body.auth-magic .auth-section::before,
body.auth-magic .auth-section::after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,#ffd972 0%,rgba(255,217,114,0) 70%);opacity:.55;filter:blur(6px)}
body.auth-magic .auth-section::before{top:110px;left:-25px}
body.auth-magic .auth-section::after{right:10px;bottom:85px}
body.auth-magic .auth-grid{grid-template-columns:minmax(320px,1fr) minmax(420px,560px);gap:34px;align-items:center;position:relative;z-index:1}
body.auth-magic .auth-promo{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:linear-gradient(180deg,rgba(23,26,76,.85),rgba(15,15,48,.92));box-shadow:0 30px 70px rgba(0,0,0,.3);backdrop-filter:blur(14px)}
body.auth-magic .auth-promo::before{content:"";position:absolute;inset:auto auto 0 0;width:220px;height:220px;background:radial-gradient(circle at 35% 35%,rgba(255,216,103,.26),rgba(255,216,103,0) 68%)}
body.auth-magic .auth-promo::after{content:"";position:absolute;right:-30px;top:-20px;width:190px;height:190px;background:radial-gradient(circle at center,rgba(142,112,255,.28),rgba(142,112,255,0) 70%)}
body.auth-magic .auth-promo > *{position:relative;z-index:1}
body.auth-magic .auth-promo h1{font-size:clamp(2.5rem,4.6vw,4rem);margin-bottom:16px;color:#fff}
body.auth-magic .auth-promo>p{color:rgba(255,255,255,.82);font-size:1rem;max-width:520px}
body.auth-magic .auth-benefits{grid-template-columns:1fr 1fr;margin-top:28px}
body.auth-magic .auth-benefits span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:#fff}
body.auth-magic .auth-stat{border-top:1px solid rgba(255,255,255,.12)}
body.auth-magic .auth-card{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(76,58,159,.58),rgba(27,22,76,.78));border:1px solid rgba(255,255,255,.16);box-shadow:0 30px 65px rgba(5,8,24,.4);backdrop-filter:blur(16px);color:#fff}
body.auth-magic .auth-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0));pointer-events:none}
body.auth-magic .auth-card > *{position:relative;z-index:1}
body.auth-magic .auth-card-head{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:22px}
body.auth-magic .auth-card-head h2{font-size:1.9rem;color:#fff}
body.auth-magic .auth-card-head p{color:rgba(255,255,255,.78)}
body.auth-magic .auth-logo-title{display:flex;align-items:center;gap:16px}
body.auth-magic .auth-logo-title .logo-copy{display:flex;flex-direction:column}
body.auth-magic .logo-copy .stack{line-height:1.02;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
body.auth-magic .logo-copy .stack b{display:block;color:#f3c34d;font-size:1.6rem}
body.auth-magic .logo-copy .stack span{display:block;color:#fff;font-size:1.35rem}
body.auth-magic .form-group label{color:#f8f6ff}
body.auth-magic .form-group input,
body.auth-magic .form-group select,
body.auth-magic .form-group textarea{background:rgba(12,13,36,.52);border:1px solid rgba(255,255,255,.12);color:#fff}
body.auth-magic .form-group input::placeholder{color:rgba(255,255,255,.42)}
body.auth-magic .form-group input:focus,
body.auth-magic .form-group select:focus,
body.auth-magic .form-group textarea:focus{border-color:#ffcf5c;box-shadow:0 0 0 4px rgba(255,207,92,.12)}
body.auth-magic .password-wrap button{color:#f5c342}
body.auth-magic .check-row,
body.auth-magic .auth-switch{color:rgba(255,255,255,.8)}
body.auth-magic .check-row a,
body.auth-magic .auth-switch a{color:#ffd15a}
body.auth-magic .alert-danger{background:rgba(255,83,83,.14);border-color:rgba(255,125,125,.32);color:#fff4f4}
body.auth-magic .magic-divider{display:flex;align-items:center;gap:12px;color:rgba(255,255,255,.65);font-size:.78rem;margin:4px 0 2px}
body.auth-magic .magic-divider::before,
body.auth-magic .magic-divider::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.12)}
body.auth-magic .magic-socials{display:flex;gap:12px;justify-content:center;margin-top:6px}
body.auth-magic .magic-socials span,body.auth-magic .magic-socials a{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#fff;font-weight:800}
body.auth-magic .magic-steps{display:flex;align-items:center;gap:10px;margin:6px 0 8px}
body.auth-magic .magic-steps b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,214,106,.18);border:1px solid rgba(255,214,106,.42);color:#ffd15a;font-size:.78rem}
body.auth-magic .magic-steps span{flex:1;height:2px;background:rgba(255,255,255,.12)}
body.auth-magic .magic-steps small{font-size:.72rem;color:rgba(255,255,255,.66)}
body.auth-magic .promo-foot{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:34px}
body.auth-magic .promo-foot div{padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}
body.auth-magic .promo-foot strong{display:block;color:#fff;font-size:.95rem}
body.auth-magic .promo-foot small{display:block;color:rgba(255,255,255,.66);margin-top:4px}
/* sitewide logo enhancement */
.brand.with-logo{gap:12px}
.brand.with-logo .brand-wordmark{display:inline-flex;align-items:baseline;gap:0;font-weight:800;letter-spacing:-.03em}
.brand.with-logo .brand-wordmark strong{color:#12b89c}
.dashboard-body .brand.with-logo .brand-wordmark,
.admin-body .brand.with-logo .brand-wordmark{color:inherit}
.dashboard-body .brand.with-logo .brand-wordmark strong,
.admin-body .brand.with-logo .brand-wordmark strong{color:#20d3bb}
.sidebar-brand.with-logo .brand-wordmark strong{color:#1bd5bd}
.admin-sidebar .sidebar-brand.with-logo .brand-wordmark strong{color:#f3c34d}
@media(max-width:820px){
  body.auth-magic .auth-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .brand-logo{width:38px;height:38px}
  body.auth-magic .auth-card-head .brand-logo{width:62px;height:62px}
  body.auth-magic .auth-logo-title{align-items:center}
  body.auth-magic .logo-copy .stack span{font-size:1.2rem}
  body.auth-magic .logo-copy .stack b{font-size:1.42rem}
  body.auth-magic .promo-foot{grid-template-columns:1fr}
}


/* v21 auth polish to match Midnight Emerald */
body.auth-magic{background:radial-gradient(circle at 10% 18%,rgba(224,176,75,.12),transparent 18%),radial-gradient(circle at 88% 20%,rgba(39,192,141,.16),transparent 22%),linear-gradient(180deg,#061624 0%,#0a2335 42%,#0d3f49 100%)}
body.auth-magic .btn-primary{background:linear-gradient(180deg,#f0c45d 0%,#d39b33 100%);color:#102334;border-color:#e0b04b;box-shadow:0 12px 30px rgba(224,176,75,.28)}
body.auth-magic .auth-card{background:linear-gradient(180deg,rgba(15,58,68,.6),rgba(9,25,40,.82));border-color:rgba(255,255,255,.14)}
body.auth-magic .auth-promo{background:linear-gradient(180deg,rgba(7,24,38,.92),rgba(13,94,86,.84))}
body.auth-magic .form-group input,body.auth-magic .form-group select,body.auth-magic .form-group textarea{background:rgba(6,24,37,.56)}
body.auth-magic .form-group input:focus,body.auth-magic .form-group select:focus,body.auth-magic .form-group textarea:focus{border-color:#73cfb0;box-shadow:0 0 0 4px rgba(39,192,141,.12)}
body.auth-magic .check-row a,body.auth-magic .auth-switch a,body.auth-magic .password-wrap button{color:#f4cf7c}

/* v28 optional Google sign-in */
body.auth-magic .google-auth-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:11px 16px;border-radius:12px;background:#fff;color:#172033;border:1px solid rgba(255,255,255,.7);font-weight:800;box-shadow:0 10px 24px rgba(0,0,0,.16);transition:transform .18s ease,box-shadow .18s ease}
body.auth-magic .google-auth-button:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.22);color:#172033}
body.auth-magic .google-auth-button span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;border:1px solid #d8dee8;color:#4285f4;font-size:.95rem}
