:root{--bg:#f8f5f0;--surface:#fff;--primary:#7a3f2d;--primary-dark:#5d2c20;--sand:#d4a96a;--ink:#26221f;--muted:#756d66;--line:#e8e1d9;--danger:#b63b3b;--success:#247650;--font:'Manrope',system-ui,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;min-width:0;min-height:100%;font-family:var(--font)}
.sema-auth-body{background:var(--bg);color:var(--ink);font-size:15px}
.auth-shell{display:grid;grid-template-columns:minmax(25rem,46%) minmax(0,1fr);min-height:100dvh}
.auth-story{position:relative;display:flex;overflow:hidden;flex-direction:column;justify-content:space-between;padding:2.625rem 3.375rem;color:#fff;background:#302823}
.auth-story::before{position:absolute;top:-10.625rem;right:-16.25rem;width:35rem;height:35rem;border:1px solid rgba(212,169,106,.18);border-radius:50%;box-shadow:0 0 0 5rem rgba(212,169,106,.035),0 0 0 10rem rgba(212,169,106,.025);content:''}
.auth-story::after{position:absolute;inset:auto 0 0;height:40%;background:linear-gradient(transparent,rgba(0,0,0,.18));content:''}
.auth-brand,.story-copy,.story-foot{position:relative;z-index:1}
.auth-brand{display:flex;align-items:center;gap:.8rem;color:#fff;text-decoration:none}
.auth-brand>span,.mobile-brand span{display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:.8rem;color:#2d2723;background:var(--sand);font-weight:800}
.auth-brand strong{display:block;font-size:1.2rem}.auth-brand small{display:block;color:#c9bfb7;font-size:.7rem}
.story-copy{max-width:38rem}.story-kicker{display:inline-flex;margin-bottom:1.35rem;color:#efd7b4;font-weight:700}
.story-copy h1{max-width:37rem;margin:0 0 1.35rem;font-size:clamp(2.25rem,4vw,3.625rem);font-weight:800;line-height:1.08;letter-spacing:-.045em}
.story-copy>p{max-width:32rem;color:#d2c9c2;font-size:1.1rem;line-height:1.7}
.story-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.35rem;margin-top:2.75rem;padding-top:1.75rem;border-top:1px solid rgba(255,255,255,.12)}
.story-benefits strong,.story-benefits span{display:block}.story-benefits strong{font-size:1rem}.story-benefits span{margin-top:.25rem;color:#bfb4ac;font-size:.75rem}
.story-foot{color:#9f948c}
.auth-form-wrap{display:grid;place-items:center;padding:2.5rem}
.auth-form{width:min(100%,28.75rem)}.mobile-brand{display:none}
.welcome{color:var(--primary);font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.auth-form h2{margin:.55rem 0;font-size:2rem;font-weight:800;letter-spacing:-.035em}.intro{margin-bottom:2rem;color:var(--muted)}
.auth-field{margin-bottom:1.25rem}.auth-field label{display:block;margin-bottom:.5rem;font-size:.875rem;font-weight:700}
.auth-label-row{display:flex;align-items:center;justify-content:space-between;gap:1rem}.auth-label-row a{color:var(--primary);font-size:.8rem;font-weight:700;text-decoration:none}
.field-wrap{position:relative}.field-symbol{position:absolute;top:50%;left:.95rem;color:var(--muted);font-size:.8rem;font-weight:800;transform:translateY(-50%)}
.auth-control{display:block;width:100%;height:3.125rem;padding:0 3rem 0 2.75rem;color:var(--ink);border:1px solid var(--line);border-radius:.75rem;background:#fff;font:inherit;outline:0}
.auth-control:focus{border-color:var(--primary);box-shadow:0 0 0 .25rem rgba(122,63,45,.1)}.auth-control.is-invalid{border-color:var(--danger)}
.password-toggle{position:absolute;top:.375rem;right:.4rem;height:2.35rem;padding:0 .7rem;color:var(--primary);border:0;border-radius:.5rem;background:transparent;font-size:.75rem;font-weight:800}
.password-toggle:hover{background:#f5e9e3}.auth-error{margin:.4rem 0 0;color:var(--danger);font-size:.8rem}
.auth-check{display:flex;align-items:center;gap:.65rem;margin:1.45rem 0;color:#554d47;font-size:.875rem;cursor:pointer}.auth-check input{width:1.05rem;height:1.05rem;accent-color:var(--primary)}
.btn-login{display:flex;align-items:center;justify-content:center;gap:.75rem;width:100%;height:3.25rem;color:#fff;border:0;border-radius:.75rem;background:var(--primary);font:inherit;font-weight:800;cursor:pointer;transition:.16s}
.btn-login:hover{background:var(--primary-dark);transform:translateY(-1px)}.btn-login:disabled{opacity:.72;transform:none;cursor:wait}
.support{margin-top:1.75rem;color:var(--muted);font-size:.8rem;text-align:center}.auth-alert{margin-bottom:1.25rem;padding:.8rem 1rem;border-radius:.7rem}.auth-alert-success{color:var(--success);background:#e6f4ed}
:focus-visible{outline:3px solid rgba(122,63,45,.25);outline-offset:2px}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-story{display:none}.auth-form-wrap{min-height:100dvh;padding:1.75rem 1.25rem}.mobile-brand{display:flex;align-items:center;gap:.65rem;margin-bottom:3rem}.mobile-brand strong{font-size:1.2rem}.auth-form h2{font-size:1.75rem}}
@media(max-width:390px){.auth-form-wrap{padding:1.35rem 1rem}.mobile-brand{margin-bottom:2.15rem}.auth-form h2{font-size:1.55rem}.intro{margin-bottom:1.6rem}.auth-label-row{align-items:flex-start;flex-direction:column;gap:0}.story-benefits{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

.auth-secondary-body{min-height:100dvh;background:linear-gradient(135deg,#302823 0 36%,#f8f5f0 36%);color:var(--ink)}
.auth-secondary-header{position:fixed;z-index:2;top:0;right:0;left:0;display:flex;align-items:center;justify-content:space-between;padding:1.5rem 2rem}
.auth-secondary-header .mobile-brand{display:flex;margin:0;color:#fff;text-decoration:none}.auth-back-link{color:var(--primary);font-size:.875rem;font-weight:750;text-decoration:none}
.auth-secondary-shell{display:grid;place-items:center;min-height:100dvh;padding:6rem 1rem 2rem}
.auth-secondary-shell>.container{max-width:46rem}.auth-secondary-shell .card{overflow:hidden;border:1px solid var(--line);border-radius:1rem;box-shadow:0 18px 55px rgba(45,39,35,.12)}
.auth-secondary-shell .card-header{padding:1.25rem 1.5rem;color:var(--ink);border-bottom:1px solid var(--line);background:#fcfaf7;font-size:1.05rem;font-weight:800}
.auth-secondary-shell .card-body{padding:1.5rem}.auth-secondary-shell .btn-primary{border-color:var(--primary);background:var(--primary)}
.auth-secondary-shell .btn-primary:hover{border-color:var(--primary-dark);background:var(--primary-dark)}
.auth-secondary-shell .form-control:focus{border-color:var(--primary);box-shadow:0 0 0 .22rem rgba(122,63,45,.1)}
@media(max-width:700px){.auth-secondary-body{background:#f8f5f0}.auth-secondary-header{padding:1rem}.auth-secondary-header .mobile-brand{color:var(--ink)}.auth-secondary-shell{padding-top:5.5rem}.auth-secondary-shell .card-body{padding:1.15rem}.auth-secondary-shell .col-form-label{text-align:left!important}}
