/*
 * Asonge Sonke authentication theme — logo-aligned brand system
 * KTG Source Fingerprint: KTG-ASONGE-2026-2884B01747739D02
 * Copyright © 2026 KT Group. All rights reserved.
 */
:root{--auth-primary:#303a59;--auth-primary-dark:#252d46;--auth-secondary:#6c6e74;--auth-muted:#8b8e94;--auth-bg:#f3f4f6;--auth-surface:#fff;--auth-border:#dfe2e7;--auth-danger:#b63838;--auth-success:#267650;--auth-radius:20px;--auth-shadow:0 24px 70px rgba(48,58,89,.13)}
html,body{min-height:100%;margin:0}body{font-family:Nunito,system-ui,-apple-system,"Segoe UI",sans-serif;background:linear-gradient(145deg,#f7f8fa 0%,#eef0f3 52%,#e5e7eb 100%);color:#242933;-webkit-font-smoothing:antialiased}.area,.circles{display:none!important}#app{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column}#app main{flex:1;display:grid;place-items:center;padding:2.25rem 1rem 1.25rem}#ktg-copyright-footer{padding:.85rem 1rem 1.25rem!important;color:var(--auth-secondary)!important}#ktg-copyright-footer a{color:var(--auth-primary);font-weight:700;text-decoration:none}
a{color:var(--auth-primary);text-decoration:none}a:hover{color:var(--auth-primary-dark)}
.auth-shell{width:min(100%,1040px);display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);background:var(--auth-surface);border:1px solid rgba(48,58,89,.10);border-radius:var(--auth-radius);overflow:hidden;box-shadow:var(--auth-shadow)}.auth-shell.auth-shell-register{width:min(100%,1140px);grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr)}.auth-form-panel{padding:clamp(1.6rem,3vw,3rem)}.auth-brand-panel{position:relative;isolation:isolate;display:flex;align-items:center;min-height:100%;padding:3rem;background:linear-gradient(145deg,var(--auth-primary-dark),var(--auth-primary));color:#fff;overflow:hidden}.auth-brand-panel::before,.auth-brand-panel::after{content:"";position:absolute;border-radius:50%;z-index:-1;background:rgba(255,255,255,.055)}.auth-brand-panel::before{width:380px;height:380px;right:-180px;top:-120px}.auth-brand-panel::after{width:280px;height:280px;left:-120px;bottom:-120px}.auth-brand-panel h1,.auth-brand-panel h2,.auth-brand-panel h3,.auth-brand-panel h4,.auth-brand-panel p{color:#fff}.auth-brand-panel p{color:rgba(255,255,255,.78);font-size:1rem;line-height:1.65}.auth-brand-eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.76rem;font-weight:800;color:rgba(255,255,255,.68)!important}.auth-brand-panel .divider{width:54px;height:4px;border-radius:99px;background:#fff;margin:1.15rem 0 1.3rem}.auth-brand-features{list-style:none;padding:0;margin:1.6rem 0 0;display:grid;gap:.65rem}.auth-brand-features li{display:flex;align-items:flex-start;gap:.65rem;color:rgba(255,255,255,.84);font-size:.92rem}.auth-brand-features li::before{content:"✓";display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border:1px solid rgba(255,255,255,.4);border-radius:50%;font-size:.7rem;color:#fff;margin-top:2px}
.auth-logo{display:inline-flex;align-items:center;margin-bottom:1.65rem}.auth-logo img,.logo{display:block;max-width:205px;max-height:76px;width:auto;height:auto;object-fit:contain}.auth-heading{margin:0 0 .35rem;color:var(--auth-primary-dark);font-weight:800;font-size:clamp(1.55rem,2.5vw,2rem)}.auth-subtitle{margin:0 0 1.6rem;color:var(--auth-secondary);font-size:.97rem}.auth-back{display:flex;width:max-content;align-items:center;gap:.35rem;margin-bottom:1.15rem;font-size:.86rem;font-weight:700;color:var(--auth-secondary)}.auth-back:hover{color:var(--auth-primary)}
.form-label{font-size:.86rem;font-weight:700;color:#353b48;margin-bottom:.38rem}.form-control,.form-select{min-height:48px;border:1px solid var(--auth-border);border-radius:10px;padding:.7rem .82rem;color:#242933;background-color:#fff}.form-control::placeholder{color:#9a9da3}.form-control:focus,.form-select:focus{border-color:var(--auth-primary);box-shadow:0 0 0 .22rem rgba(48,58,89,.10)}.input-group .form-control{border-radius:0 10px 10px 0}.input-group-text{min-height:48px;border:1px solid var(--auth-border);border-right:0;background:#f6f7f9;color:var(--auth-primary);font-weight:800;border-radius:10px 0 0 10px}.form-group{margin-bottom:1rem}.form-check-input{width:1.1em;height:1.1em;margin-top:.19em;border-color:#b7bbc2}.form-check-input:checked{background-color:var(--auth-primary);border-color:var(--auth-primary)}.form-check-input:focus{box-shadow:0 0 0 .2rem rgba(48,58,89,.10);border-color:var(--auth-primary)}.invalid-feedback{display:block;font-size:.82rem}.is-invalid{border-color:var(--auth-danger)!important}.alert{border-radius:10px;border-width:1px;font-size:.9rem}.alert-danger{background:#fff4f4;border-color:#efd2d2;color:#8e2b2b}.alert-success{background:#f2fbf6;border-color:#cfe8d9;color:#246342}
.btn-login,.btn-register,.btn-google,.btn-facebook,.auth-primary-btn,.auth-secondary-btn{width:100%;min-height:48px;border-radius:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;padding:.72rem 1rem;transition:.18s ease}.btn-login,.auth-primary-btn{background:var(--auth-primary);border-color:var(--auth-primary);color:#fff}.btn-login:hover,.auth-primary-btn:hover{background:var(--auth-primary-dark);border-color:var(--auth-primary-dark);color:#fff;transform:translateY(-1px)}.btn-register,.auth-secondary-btn{background:#fff;border-color:var(--auth-primary);color:var(--auth-primary);margin-top:.65rem}.btn-register:hover,.auth-secondary-btn:hover{background:rgba(48,58,89,.06);color:var(--auth-primary-dark)}.btn-google,.btn-facebook{margin-top:.65rem;background:#fff;border-color:var(--auth-border);color:#333}.btn:disabled,.btn.disabled{opacity:.55;cursor:not-allowed;transform:none!important}.auth-actions{display:grid;gap:.65rem}.auth-meta{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.4rem 0 1.2rem;color:var(--auth-secondary);font-size:.9rem}.auth-footer-links{margin-top:1.4rem;padding-top:1.1rem;border-top:1px solid #eceef1;text-align:center;color:var(--auth-secondary);font-size:.9rem}.auth-inline-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.auth-phone-grid{display:grid;grid-template-columns:minmax(180px,.72fr) minmax(0,1.28fr);gap:1rem}.auth-agreement{display:flex;align-items:flex-start;gap:.65rem;padding:.9rem 1rem;background:#f7f8fa;border:1px solid #e4e6ea;border-radius:10px}.auth-agreement .form-check-input{float:none!important;margin:.18rem 0 0!important;flex:0 0 auto;width:1.1em!important;height:1.1em!important}.auth-agreement .form-check-label{margin:0;flex:1 1 auto;font-size:.87rem;color:#565b66;line-height:1.5}.auth-phone-grid .input-group{display:flex!important;flex-wrap:nowrap!important;align-items:stretch;width:100%!important}.auth-phone-grid .input-group>.input-group-text{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:auto!important;min-width:48px}.auth-phone-grid .input-group>.form-control{flex:1 1 auto!important;width:1%!important;min-width:0!important}.auth-security-note{display:flex;gap:.65rem;align-items:flex-start;padding:.8rem .9rem;margin:1rem 0;background:rgba(48,58,89,.045);border:1px solid rgba(48,58,89,.09);border-radius:10px;color:var(--auth-secondary);font-size:.86rem}.auth-security-note strong{color:var(--auth-primary)}
/* Compatibility for older auth templates */
.auth-container{width:100%}.card-signin,.auth-container .card{border:1px solid var(--auth-border);border-radius:var(--auth-radius);box-shadow:var(--auth-shadow);overflow:hidden}.card-signin .card-body,.auth-container .card .card-body{padding:2rem}.bg-white.p-2{border-radius:var(--auth-radius);box-shadow:var(--auth-shadow)}#auth-bg{min-height:100%;background:linear-gradient(145deg,var(--auth-primary-dark),var(--auth-primary));color:#fff;padding:2rem}#auth-bg h1,#auth-bg h2,#auth-bg h3,#auth-bg h4,#auth-bg h5,#auth-bg h6,#auth-bg p{color:#fff}#auth-bg .divider{width:54px;height:4px;background:#fff;border-radius:99px;margin:1rem 0}.font-weight-bold{font-weight:800!important}.font-weight-light{font-weight:400!important}.footer-links{margin-top:1rem}.btn-block{width:100%}.custom-control{padding-left:0}.custom-control-input{margin-right:.35rem}.custom-control-label{font-size:.9rem}
@media(max-width:991.98px){#app main{padding:1.4rem .85rem}.auth-shell,.auth-shell.auth-shell-register{grid-template-columns:minmax(0,1fr) minmax(285px,.72fr)}.auth-brand-panel{padding:2rem}.auth-form-panel{padding:2rem}}
@media(max-width:767.98px){body{background:#f4f5f7}.auth-shell,.auth-shell.auth-shell-register{grid-template-columns:1fr;width:min(100%,620px);border-radius:16px}.auth-brand-panel{display:none}.auth-form-panel{padding:1.55rem}.auth-inline-grid,.auth-phone-grid{grid-template-columns:1fr}.auth-meta{align-items:flex-start;flex-direction:column;gap:.55rem}.auth-logo img,.logo{max-width:178px;max-height:65px}#ktg-copyright-footer{font-size:.75rem}}
@media(max-width:575.98px){#app main{padding:.75rem .55rem}.auth-shell,.auth-shell.auth-shell-register{border-radius:12px;box-shadow:0 14px 40px rgba(48,58,89,.10)}.auth-form-panel{padding:1.25rem}.form-control,.form-select,.input-group-text{min-height:46px}.auth-heading{font-size:1.5rem}.auth-subtitle{font-size:.9rem;margin-bottom:1.25rem}.auth-logo{margin-bottom:1.25rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Auth password visibility + first-party CAPTCHA */
.auth-password-wrap{position:relative}.auth-password-wrap .form-control{padding-right:3rem}.auth-password-toggle{position:absolute;top:50%;right:.65rem;transform:translateY(-50%);width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:var(--auth-secondary);cursor:pointer}.auth-password-toggle:hover,.auth-password-toggle:focus{color:var(--auth-primary);background:rgba(48,58,89,.07);outline:none}.auth-password-toggle:focus-visible{box-shadow:0 0 0 .2rem rgba(48,58,89,.14)}.auth-password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.auth-password-toggle .eye-closed{display:none}.auth-password-toggle[aria-pressed="true"] .eye-open{display:none}.auth-password-toggle[aria-pressed="true"] .eye-closed{display:block}.auth-captcha{margin:1rem 0;padding:1rem;border:1px solid rgba(48,58,89,.14);border-radius:12px;background:#fafbfc}.auth-captcha-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.65rem;font-size:.9rem;font-weight:800;color:var(--auth-primary-dark)}.auth-captcha-required{padding:.2rem .5rem;border-radius:999px;background:rgba(48,58,89,.08);color:var(--auth-primary);font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.auth-captcha .form-label{display:block}.auth-captcha-help{display:block;margin-top:.45rem;color:var(--auth-secondary);font-size:.78rem;line-height:1.4}
