@import url('/includes/platform_animations.php');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root{--auth-primary:#6c5ce7;--auth-dark:#5142c7;--auth-soft:#f1efff;--auth-text:#1e2030;--auth-muted:#747988;--auth-border:#e7e5f0}
*{box-sizing:border-box}
body.auth-page{min-height:100vh;margin:0;font-family:'Cairo',sans-serif;color:var(--auth-text);background:radial-gradient(circle at 12% 16%,rgba(108,92,231,.16),transparent 25%),radial-gradient(circle at 88% 84%,rgba(0,184,148,.11),transparent 24%),linear-gradient(135deg,#f8f7ff,#f4f6fb);overflow-x:hidden}
.auth-page:before,.auth-page:after{content:"";position:fixed;border-radius:50%;border:45px solid rgba(108,92,231,.06);pointer-events:none}.auth-page:before{width:250px;height:250px;right:-95px;top:-85px}.auth-page:after{width:200px;height:200px;left:-70px;bottom:-75px}
.auth-nav{height:76px;background:rgba(255,255,255,.88);border-bottom:1px solid rgba(227,224,242,.9);backdrop-filter:blur(14px);display:flex;align-items:center;position:relative;z-index:3}
.auth-nav-inner{width:min(1120px,calc(100% - 32px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}
.auth-brand{display:flex;align-items:center;gap:11px;color:var(--auth-text);text-decoration:none;font-size:1.18rem;font-weight:900}.auth-brand:hover{color:var(--auth-primary)}
.auth-brand-icon{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--auth-primary),#8879f4);color:#fff;display:grid;place-items:center;box-shadow:0 9px 22px rgba(108,92,231,.26)}
.auth-home-link{display:inline-flex;align-items:center;gap:8px;color:#5c6070;text-decoration:none;font-weight:700;padding:9px 13px;border-radius:11px}.auth-home-link:hover{background:var(--auth-soft);color:var(--auth-primary)}
.auth-shell{width:min(1120px,calc(100% - 32px));min-height:calc(100vh - 76px);margin:auto;padding:38px 0;display:grid;grid-template-columns:minmax(300px,.88fr) minmax(360px,1.12fr);align-items:center;gap:58px;position:relative;z-index:1}
.auth-intro{padding:20px}.auth-badge{display:inline-flex;align-items:center;gap:7px;background:#fff;color:var(--auth-primary);border:1px solid #e6e2ff;border-radius:999px;padding:7px 12px;font-size:.8rem;font-weight:800;box-shadow:0 7px 20px rgba(55,47,110,.06)}
.auth-intro h2{font-size:clamp(2rem,4vw,3.35rem);font-weight:900;line-height:1.35;margin:18px 0 14px}.auth-intro h2 span{background:linear-gradient(135deg,var(--auth-primary),#00a98f);-webkit-background-clip:text;color:transparent}.auth-intro p{color:var(--auth-muted);line-height:2;font-size:1rem;max-width:490px}
.auth-benefits{display:grid;gap:13px;margin-top:25px}.auth-benefit{display:flex;align-items:center;gap:11px;font-weight:700;color:#535766}.auth-benefit i{width:35px;height:35px;border-radius:10px;background:#fff;color:var(--auth-primary);display:grid;place-items:center;box-shadow:0 6px 18px rgba(50,44,90,.07)}
.auth-card{background:rgba(255,255,255,.96);border:1px solid rgba(229,226,243,.95);border-radius:28px;box-shadow:0 25px 70px rgba(42,37,77,.12);overflow:hidden}.auth-card-top{height:6px;background:linear-gradient(90deg,var(--auth-primary),#897af7,#00b894)}.auth-card-body{padding:34px 38px}.auth-heading{text-align:center;margin-bottom:27px}.auth-heading-icon{width:58px;height:58px;border-radius:18px;margin:0 auto 13px;background:var(--auth-soft);color:var(--auth-primary);display:grid;place-items:center;font-size:1.5rem}.auth-heading h1{font-size:1.65rem;font-weight:900;margin:0 0 7px}.auth-heading p{color:var(--auth-muted);margin:0;font-size:.9rem}
.auth-card .form-label{font-size:.88rem;font-weight:800;color:#3e4150;margin-bottom:8px}.auth-input{position:relative}.auth-input>i{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#9a9dac;z-index:2}.auth-card .form-control,.auth-card .form-select{height:50px;border:1px solid var(--auth-border);border-radius:13px;background:#fbfbfe;padding-right:43px;color:var(--auth-text);box-shadow:none}.auth-card .form-select{background-position:left .75rem center}.auth-card .form-control:focus,.auth-card .form-select:focus{background:#fff;border-color:#9f93f4;box-shadow:0 0 0 4px rgba(108,92,231,.10)}
.gender-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.gender-option{cursor:pointer}.gender-option input{position:absolute;opacity:0;pointer-events:none}.gender-option-card{min-height:82px;border:1px solid var(--auth-border);border-radius:14px;background:#fbfbfe;display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;align-items:center;padding:12px 14px;transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease,transform .2s ease}.gender-option-card>i{grid-row:1/3;width:36px;height:36px;border-radius:11px;background:var(--auth-soft);color:var(--auth-primary);display:grid;place-items:center;font-size:1.15rem}.gender-option-card strong{font-size:.9rem}.gender-option-card small{font-size:.72rem;color:var(--auth-muted)}.gender-option:hover .gender-option-card{border-color:#c8c1fb;transform:translateY(-1px)}.gender-option input:checked+.gender-option-card{border-color:var(--auth-primary);background:#f3f1ff;box-shadow:0 0 0 3px rgba(108,92,231,.10)}.gender-option input:checked+.gender-option-card>i{background:var(--auth-primary);color:#fff}.gender-option input:focus-visible+.gender-option-card{outline:3px solid rgba(108,92,231,.22);outline-offset:2px}
.auth-submit{height:51px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--auth-primary),#7e70ec);color:#fff;font-weight:800;box-shadow:0 11px 24px rgba(108,92,231,.26);transition:transform .2s ease,box-shadow .2s ease}.auth-submit:hover,.auth-submit:focus{color:#fff;background:linear-gradient(135deg,var(--auth-dark),#6f61df);transform:translateY(-2px);box-shadow:0 15px 29px rgba(108,92,231,.32)}
.auth-switch{text-align:center;color:var(--auth-muted);margin:22px 0 0;font-size:.92rem}.auth-switch a{color:var(--auth-primary);font-weight:800;text-decoration:none}.auth-switch a:hover{text-decoration:underline}.auth-card .alert{border:0;border-radius:13px;font-size:.9rem;line-height:1.7}.auth-card .progress{background:#eceaf6}.auth-card .progress-bar{background:linear-gradient(90deg,var(--auth-primary),#00b894)}
@media(max-width:900px){.auth-shell{grid-template-columns:1fr;max-width:650px;gap:20px;padding-top:28px}.auth-intro{text-align:center;padding:10px}.auth-intro p{margin-inline:auto}.auth-benefits{display:none}.auth-intro h2{font-size:2.15rem;margin-bottom:8px}}
@media(max-width:575px){.auth-nav{height:66px}.auth-home-link span{display:none}.auth-shell{width:min(100% - 20px,540px);padding:20px 0 28px;min-height:calc(100vh - 66px)}.auth-intro h2{font-size:1.65rem}.auth-intro p{font-size:.88rem}.auth-card{border-radius:21px}.auth-card-body{padding:27px 20px}.auth-heading h1{font-size:1.4rem}}
