/* Theme bridge for login, registration and password reset pages. */
body.auth-theme {
  background:
    radial-gradient(circle at 8% 5%, color-mix(in srgb,var(--primary) 18%,transparent), transparent 30rem),
    radial-gradient(circle at 94% 94%, color-mix(in srgb,var(--primary) 10%,transparent), transparent 28rem),
    var(--bg-dark);
}
body.auth-theme .auth-card,
body.auth-theme .register-card,
body.auth-theme .form-panel { background:var(--surface);color:var(--text-main) }
body.auth-theme .form-panel h1,body.auth-theme .form-panel h2,body.auth-theme .form-panel h3,body.auth-theme .form-panel h4,body.auth-theme .form-panel h5,body.auth-theme .form-panel h6,
body.auth-theme .form-panel label,body.auth-theme .form-panel .form-label{color:var(--text-main)}
body.auth-theme .form-panel .section-title,body.auth-theme .form-panel .kvkk-title,body.auth-theme .form-panel .form-check-label,body.auth-theme .form-panel .helper-box strong{color:var(--text-main)}
body.auth-theme .form-panel .text-muted,body.auth-theme .form-panel .form-text{color:var(--text-soft)!important}
body.auth-theme .form-panel .form-top-note,
body.auth-theme .form-panel .form-subtitle,
body.auth-theme .form-panel .mini-help,
body.auth-theme .form-panel .helper-box,
body.auth-theme .form-panel .register-link-box .desc,
body.auth-theme .form-panel .kvkk-desc,
body.auth-theme .form-panel .bottom-note,
body.auth-theme .form-panel small,
body.auth-theme .form-panel .small{color:var(--text-soft)!important}
body.auth-theme .form-panel .form-title,
body.auth-theme .form-panel .section-title,
body.auth-theme .form-panel .kvkk-title,
body.auth-theme .form-panel legend,
body.auth-theme .form-panel strong{color:var(--text-main)}
body.auth-theme .form-panel a:not(.btn){color:var(--primary)}
body.auth-theme .form-panel a:not(.btn):hover{color:var(--primary-hover)}
body.auth-theme .form-panel .form-control,body.auth-theme .form-panel .form-select,body.auth-theme .form-panel .input-group-text{background:var(--input-bg);color:var(--text-main);border-color:var(--border-soft)}
body.auth-theme .form-panel .form-control:focus,body.auth-theme .form-panel .form-select:focus{background:var(--surface);border-color:var(--primary);box-shadow:0 0 0 .2rem color-mix(in srgb,var(--primary) 18%,transparent)}
body.auth-theme .form-panel .form-control::placeholder{color:var(--text-soft);opacity:.72}
body.auth-theme .form-panel .register-link-box,body.auth-theme .form-panel .notice-box,body.auth-theme .form-panel .kvkk-box,body.auth-theme .form-panel .code-box{background:color-mix(in srgb,var(--input-bg) 82%,var(--surface));border-color:var(--border-soft);color:var(--text-main)}
body.auth-theme .modal-content{background:var(--surface);color:var(--text-main);border-color:var(--border-soft)}
body.auth-theme .modal-header,body.auth-theme .modal-footer{border-color:var(--border-soft)}
body.auth-theme .kvkk-scroll{background:var(--input-bg);color:var(--text-main);border-color:var(--border-soft)}
body.auth-theme .kvkk-scroll h6{color:var(--text-main)}
body.auth-theme .password-toggle{color:var(--text-soft)}
body.auth-theme .password-toggle:hover,body.auth-theme .password-toggle:focus{color:var(--text-main)}
body.auth-theme .form-panel .btn-outline-secondary{color:var(--text-main);border-color:var(--border-soft)}
body.auth-theme .form-panel .btn-outline-secondary:hover{color:var(--primary-text);background:var(--primary);border-color:var(--primary)}
body.auth-theme .form-panel option{background:var(--surface);color:var(--text-main)}
body.auth-theme-dark .btn-close,body.auth-theme-carbon .btn-close{filter:invert(1) grayscale(1)}

/* Contrast safeguards: these three layouts may use very light or very dark
   administrator-defined palettes. Keep instructional copy readable even when
   a saved muted colour is too close to its surface. */
body.auth-theme-dark .form-panel,
body.auth-theme-carbon .form-panel{--auth-copy:#f1f5f9;--auth-muted:#b8c4d3;--auth-faint:#9eacbd}
body.auth-theme-glacier .form-panel{--auth-copy:#173442;--auth-muted:#526f7c;--auth-faint:#607d89}
body.auth-theme-dark .form-panel :is(.form-title,.section-title,.kvkk-title,.modal-title,.form-label,label,legend,strong),
body.auth-theme-carbon .form-panel :is(.form-title,.section-title,.kvkk-title,.modal-title,.form-label,label,legend,strong),
body.auth-theme-glacier .form-panel :is(.form-title,.section-title,.kvkk-title,.modal-title,.form-label,label,legend,strong){color:var(--auth-copy)!important}
body.auth-theme-dark .form-panel :is(.form-top-note,.form-subtitle,.mini-help,.helper-box,.bottom-note,.kvkk-desc,.desc,.form-text,.text-muted,small,.small),
body.auth-theme-carbon .form-panel :is(.form-top-note,.form-subtitle,.mini-help,.helper-box,.bottom-note,.kvkk-desc,.desc,.form-text,.text-muted,small,.small),
body.auth-theme-glacier .form-panel :is(.form-top-note,.form-subtitle,.mini-help,.helper-box,.bottom-note,.kvkk-desc,.desc,.form-text,.text-muted,small,.small){color:var(--auth-muted)!important}
body.auth-theme-dark .form-panel :is(input,textarea)::placeholder,
body.auth-theme-carbon .form-panel :is(input,textarea)::placeholder,
body.auth-theme-glacier .form-panel :is(input,textarea)::placeholder{color:var(--auth-faint)!important;opacity:1!important}
body.auth-theme-dark .form-panel .input-group-text,
body.auth-theme-carbon .form-panel .input-group-text,
body.auth-theme-glacier .form-panel .input-group-text{color:var(--auth-copy)!important}

body.auth-theme-atlas .auth-card,body.auth-theme-atlas .register-card{border-radius:11px;border:1px solid color-mix(in srgb,var(--primary) 38%,transparent);box-shadow:0 28px 70px rgba(25,20,14,.38)}
body.auth-theme-atlas .btn,body.auth-theme-atlas .form-control,body.auth-theme-atlas .form-select{border-radius:7px!important}

body.auth-theme-aurora .auth-card,body.auth-theme-aurora .register-card{border-radius:34px;box-shadow:0 35px 95px rgba(48,27,73,.42)}
body.auth-theme-aurora .brand-side,body.auth-theme-aurora .side{background:linear-gradient(155deg,var(--side-a),color-mix(in srgb,var(--primary) 42%,var(--side-b)),color-mix(in srgb,var(--primary) 25%,#ec4899))}
body.auth-theme-aurora .btn{border-radius:999px!important}body.auth-theme-aurora .form-control,body.auth-theme-aurora .form-select{border-radius:14px!important}

body.auth-theme-terra .auth-card,body.auth-theme-terra .register-card{border-radius:18px;box-shadow:0 30px 80px rgba(58,47,34,.38)}
body.auth-theme-terra .brand-side,body.auth-theme-terra .side{background:linear-gradient(145deg,#29271f,#514936)}
body.auth-theme-terra .form-panel{background:#fffdf8}

body.auth-theme-glacier{background:linear-gradient(145deg,#e3f1f5,#f7fcfd)}
body.auth-theme-glacier .auth-card,body.auth-theme-glacier .register-card{border:1px solid var(--border-soft);border-radius:16px;box-shadow:0 26px 70px rgba(35,76,91,.2)}
body.auth-theme-glacier .brand-side,body.auth-theme-glacier .side{background:linear-gradient(150deg,#e7f3f7,#cde8ef);color:#173442!important}
body.auth-theme-glacier .brand-side *,body.auth-theme-glacier .side *{color:#173442!important;border-color:rgba(23,52,66,.18)}
body.auth-theme-glacier .brand-side p,body.auth-theme-glacier .side p,
body.auth-theme-glacier .brand-side .side-info-item,body.auth-theme-glacier .side .side-info-item,
body.auth-theme-glacier .brand-side .distributor-note{color:#315463!important}
body.auth-theme-glacier .brand-side :is(h1,h2,h3,.side-badge),body.auth-theme-glacier .side :is(h1,h2,h3,.side-badge){color:#173442!important}
body.auth-theme-glacier .brand-side .btn-outline-light,body.auth-theme-glacier .side .btn-outline-light{color:#173442!important;border-color:rgba(23,52,66,.42)!important;background:rgba(255,255,255,.32)}
body.auth-theme-glacier .brand-side .btn-outline-light:hover,body.auth-theme-glacier .side .btn-outline-light:hover{background:#173442!important;color:#fff!important}

body.auth-theme-carbon .auth-card,body.auth-theme-carbon .register-card{border:1px solid #2b3a4d;border-radius:19px;box-shadow:0 32px 90px rgba(0,0,0,.62)}
body.auth-theme-carbon .brand-side,body.auth-theme-carbon .side{background:linear-gradient(145deg,#090d14,#173a50)}
body.auth-theme-carbon .form-panel,body.auth-theme-dark .form-panel{color-scheme:dark}
body.auth-theme-carbon .form-panel .helper-box,body.auth-theme-carbon .form-panel .bottom-note,
body.auth-theme-dark .form-panel .helper-box,body.auth-theme-dark .form-panel .bottom-note{background:color-mix(in srgb,var(--surface) 72%,var(--input-bg));color:var(--text-soft)!important}
body.auth-theme-carbon .form-panel .form-control::placeholder,
body.auth-theme-dark .form-panel .form-control::placeholder{color:#aebbc9;opacity:.86}

body.auth-theme-dark .auth-card,body.auth-theme-dark .register-card{border:1px solid #303640;border-radius:15px;box-shadow:0 32px 90px rgba(0,0,0,.65)}
body.auth-theme-dark .brand-side,body.auth-theme-dark .side{background:linear-gradient(145deg,#080a0e,#1b2030)}
body.auth-theme-dark .brand-side :is(p,.side-info-item,.distributor-note),body.auth-theme-dark .side :is(p,.side-info-item,.distributor-note),
body.auth-theme-carbon .brand-side :is(p,.side-info-item,.distributor-note),body.auth-theme-carbon .side :is(p,.side-info-item,.distributor-note){color:#c6d0dc!important}
body.auth-theme-dark .brand-side :is(h1,h2,h3,.side-badge),body.auth-theme-dark .side :is(h1,h2,h3,.side-badge),
body.auth-theme-carbon .brand-side :is(h1,h2,h3,.side-badge),body.auth-theme-carbon .side :is(h1,h2,h3,.side-badge){color:#fff!important}

body.auth-theme-gold{background:radial-gradient(circle at 10% 5%,rgba(189,141,50,.2),transparent 30rem),linear-gradient(145deg,#17130d,#2b2112)}
body.auth-theme-gold .auth-card,body.auth-theme-gold .register-card{border:1px solid #8e6c2d;border-radius:12px;box-shadow:0 34px 90px rgba(30,22,10,.58)}
body.auth-theme-gold .brand-side,body.auth-theme-gold .side{background:linear-gradient(145deg,#15120d,#4a3819)}
body.auth-theme-gold .form-panel{background:linear-gradient(145deg,#fffefa,#f8f1e4)}
body.auth-theme-gold .btn,body.auth-theme-gold .form-control,body.auth-theme-gold .form-select{border-radius:6px!important}

@media(max-width:991.98px){
  body.auth-theme .auth-card,body.auth-theme .register-card{border-radius:18px}
}
