/* ── Glassmorphism Auth Layout ── */
*,*::before,*::after{box-sizing:border-box}
.gl-bg{position:fixed;inset:0;z-index:0;background:#07091a;overflow:hidden}
.gl-orb{position:absolute;border-radius:50%;filter:blur(100px);pointer-events:none}
.gl-orb-1{width:600px;height:600px;background:rgba(99,102,241,.22);top:-180px;right:-120px;animation:gl-drift 14s ease-in-out infinite}
.gl-orb-2{width:500px;height:500px;background:rgba(6,182,212,.16);bottom:-120px;left:-100px;animation:gl-drift 11s ease-in-out infinite reverse}
.gl-orb-3{width:300px;height:300px;background:rgba(168,85,247,.15);top:50%;left:38%;animation:gl-drift 9s ease-in-out infinite 3s}
@keyframes gl-drift{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(40px,-40px) scale(1.06)}66%{transform:translate(-25px,30px) scale(.94)}}
.gl-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:48px 48px}
.gl-wrap{position:relative;z-index:1;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem 1rem}
.gl-card{width:100%;max-width:920px;display:flex;border-radius:28px;overflow:hidden;background:rgba(255,255,255,.055);backdrop-filter:blur(28px) saturate(160%);border:1px solid rgba(255,255,255,.1);box-shadow:0 40px 100px rgba(0,0,0,.55);animation:gl-appear .65s cubic-bezier(.16,1,.3,1) both}
.gl-card-wide{max-width:980px}
@keyframes gl-appear{from{opacity:0;transform:translateY(32px) scale(.97)}to{opacity:1;transform:none}}

/* Brand panel */
.gl-brand{flex:0 0 44%;background:linear-gradient(160deg,rgba(99,102,241,.26) 0%,rgba(6,182,212,.1) 100%);border-left:1px solid rgba(255,255,255,.07);padding:3rem 2.5rem;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.gl-brand::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 20% 40%,rgba(99,102,241,.15),transparent 65%)}
.gl-logo{width:72px;height:72px;border-radius:20px;background:linear-gradient(135deg,#6366f1,#06b6d4);display:flex;align-items:center;justify-content:center;font-size:1.85rem;font-weight:900;color:#fff;margin-bottom:1.8rem;box-shadow:0 8px 32px rgba(99,102,241,.5),0 0 0 8px rgba(99,102,241,.08);position:relative}
.gl-brand-title{font-size:1.4rem;font-weight:800;color:#fff;margin-bottom:.5rem;line-height:1.3;position:relative}
.gl-brand-sub{color:rgba(255,255,255,.5);font-size:.82rem;line-height:1.8;margin-bottom:2rem;position:relative}
.gl-feat{display:flex;align-items:center;gap:.75rem;color:rgba(255,255,255,.65);font-size:.78rem;padding:.38rem 0;position:relative}
.gl-feat-icon{width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:.7rem;flex-shrink:0}
.gl-badge{display:inline-flex;align-items:center;gap:.5rem;background:rgba(34,197,94,.15);border:1px solid rgba(34,197,94,.3);border-radius:30px;padding:.22rem .8rem;font-size:.68rem;color:#4ade80;margin-top:2.5rem;position:relative}

/* Form panel */
.gl-form{flex:1;padding:3rem 2.8rem;display:flex;flex-direction:column;justify-content:center}
.gl-form-title{font-size:1.4rem;font-weight:800;color:#fff;margin-bottom:.3rem}
.gl-form-sub{color:rgba(255,255,255,.4);font-size:.8rem;margin-bottom:2rem}
.gl-alert{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.3);border-radius:12px;padding:.75rem 1rem;margin-bottom:1.2rem;color:#fca5a5;font-size:.8rem}

/* Inputs */
.gl-label{font-size:.75rem;color:rgba(255,255,255,.45);margin-bottom:.3rem;padding-right:.2rem}
.gl-input-wrap{position:relative;margin-bottom:1rem}
.gl-input-icon{position:absolute;top:50%;transform:translateY(-50%);right:1rem;color:rgba(255,255,255,.3);font-size:.82rem;pointer-events:none;transition:color .2s}
.gl-input{width:100%;padding:.88rem 2.8rem .88rem 1.1rem;background:rgba(255,255,255,.07);border:1.5px solid rgba(255,255,255,.1);border-radius:14px;color:#fff;font-size:.9rem;transition:border-color .2s,background .2s,box-shadow .2s;outline:none;direction:rtl;font-family:inherit}
.gl-input::placeholder{color:rgba(255,255,255,.22)}
.gl-input:focus{border-color:#6366f1;background:rgba(99,102,241,.09);box-shadow:0 0 0 3px rgba(99,102,241,.18)}
.gl-input.is-invalid{border-color:#ef4444}
.gl-invalid{color:#fca5a5;font-size:.73rem;margin-top:.3rem;padding-right:.4rem}
.gl-pw-toggle{position:absolute;top:50%;transform:translateY(-50%);left:.9rem;background:none;border:none;color:rgba(255,255,255,.25);cursor:pointer;font-size:.8rem;padding:0;line-height:1;transition:color .15s}
.gl-pw-toggle:hover{color:rgba(255,255,255,.65)}

/* Remember / grid */
.gl-remember{display:flex;align-items:center;gap:.55rem;cursor:pointer;color:rgba(255,255,255,.45);font-size:.8rem;margin-bottom:1.5rem;direction:rtl;user-select:none}
.gl-remember input[type=checkbox]{accent-color:#6366f1;width:15px;height:15px;cursor:pointer}
.gl-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.gl-divider{height:1px;background:rgba(255,255,255,.07);margin:.5rem 0 1rem}

/* Button */
.gl-btn{width:100%;padding:.92rem;background:linear-gradient(135deg,#6366f1,#4f46e5);border:none;border-radius:14px;color:#fff;font-size:.95rem;font-weight:700;cursor:pointer;transition:transform .15s,box-shadow .2s,opacity .2s;box-shadow:0 4px 20px rgba(99,102,241,.45);font-family:inherit;position:relative;overflow:hidden}
.gl-btn::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.12),transparent);opacity:0;transition:opacity .2s}
.gl-btn:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(99,102,241,.55)}
.gl-btn:hover::before{opacity:1}
.gl-btn:active{transform:translateY(0)}
.gl-btn:disabled{opacity:.65;cursor:not-allowed;transform:none}

/* Links / footer */
.gl-links{display:flex;justify-content:space-between;margin-top:1.3rem;direction:rtl}
.gl-links a{color:rgba(255,255,255,.35);font-size:.75rem;text-decoration:none;transition:color .15s}
.gl-links a:hover{color:rgba(99,102,241,.9)}
.gl-footer{margin-top:2.5rem;text-align:center;color:rgba(255,255,255,.18);font-size:.7rem}
.gl-footer a{color:rgba(255,255,255,.28);text-decoration:none}
.gl-footer a:hover{color:rgba(255,255,255,.55)}

/* Responsive */
@media(max-width:680px){
    .gl-brand{display:none}
    .gl-form{padding:2.5rem 2rem}
    .gl-card{max-width:430px}
    .gl-grid-2{grid-template-columns:1fr}
}
