/* RioPlay 10 — Auth pages (login / signup / OTP / reset / 2FA)
   Extracted from the approved Auth-Pages design reference. */
:root{
  --blue:#1976D2;--blue-h:#1565C0;--blue-l:#E3F2FD;--blue-d:#0D47A1;
  --orange:#F57C00;--orange-h:#EF6C00;--orange-l:#FFF3E0;--orange-d:#E65100;
  --green:#2E7D32;--green-l:#E8F5E9;
  --red:#C62828;--red-l:#FFEBEE;
  --ag50:#FAFAFA;--ag100:#F5F5F5;--ag200:#EEE;--ag300:#E0E0E0;--ag400:#BDBDBD;--ag500:#9E9E9E;--ag600:#757575;--ag700:#616161;--ag900:#212121;
  --aradius:10px;--aradius-lg:16px;
  --afont:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
}
.auth-page{display:flex;min-height:100vh;font-family:var(--afont)}

.auth-left{flex:1;background:linear-gradient(135deg,var(--blue-d) 0%,var(--blue) 50%,#1E88E5 100%);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:60px;position:relative;overflow:hidden}
.auth-left::before{content:'';position:absolute;width:500px;height:500px;border-radius:50%;background:rgba(245,124,0,0.08);top:-100px;right:-100px}
.auth-left::after{content:'';position:absolute;width:300px;height:300px;border-radius:50%;background:rgba(255,255,255,0.04);bottom:-50px;left:-50px}
.auth-left .hero-content{position:relative;z-index:1;max-width:440px;color:#fff}
.auth-left .hero-logo{display:flex;align-items:center;gap:12px;margin-bottom:40px}
.auth-left .hero-logo .icon{width:52px;height:52px;background:var(--orange);border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:26px;color:#fff;box-shadow:0 4px 20px rgba(245,124,0,0.4)}
.auth-left .hero-logo .text{font-size:28px;font-weight:800;color:#fff}
.auth-left .hero-logo .text span{color:var(--orange)}
.auth-left h1{font-size:32px;font-weight:800;line-height:1.2;margin-bottom:16px}
.auth-left p{font-size:15px;opacity:.8;line-height:1.7;margin-bottom:32px}
.auth-left .features{display:flex;flex-direction:column;gap:14px}
.auth-left .feat{display:flex;align-items:center;gap:12px;font-size:14px;opacity:.9}
.auth-left .feat .fi{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,0.12);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}

.auth-right{width:520px;display:flex;align-items:center;justify-content:center;padding:40px;background:#fff;flex-shrink:0}
.auth-form{width:100%;max-width:400px}

@media(max-width:960px){
  .auth-page{flex-direction:column}
  .auth-left{padding:32px 24px;min-height:auto;flex:none}
  .auth-left h1{font-size:22px}
  .auth-left p{font-size:13px;margin-bottom:16px}
  .auth-left .features{display:none}
  .auth-right{width:100%;padding:24px;border-radius:var(--aradius-lg) var(--aradius-lg) 0 0;margin-top:-16px;position:relative;z-index:2}
}

.form-title{font-size:24px;font-weight:800;margin-bottom:4px;color:var(--ag900)}
.form-subtitle{font-size:13px;color:var(--ag600);margin-bottom:28px}
.form-subtitle a{color:var(--orange);font-weight:600;cursor:pointer}
.form-subtitle a:hover{text-decoration:underline}

.afg{margin-bottom:18px}
.afg label{display:block;font-size:12px;font-weight:600;color:var(--ag700);margin-bottom:6px}
.afg .required{color:var(--red)}
.fi-wrap{position:relative}
.fi-wrap i.prefix{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:18px;color:var(--ag400)}
.fi-wrap i.suffix{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:18px;color:var(--ag400);cursor:pointer}
.fi-wrap i.suffix:hover{color:var(--ag600)}
.afi{width:100%;padding:12px 14px;border:1.5px solid var(--ag300);border-radius:var(--aradius);font-size:14px;font-family:var(--afont);transition:all .15s;background:#fff}
.afi:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(245,124,0,0.1)}
.afi.has-prefix{padding-left:42px}
.afi.has-suffix{padding-right:42px}
.afi.error{border-color:var(--red)}

.phone-row{display:flex;gap:8px}
.phone-row select{width:96px;padding:12px 8px;border:1.5px solid var(--ag300);border-radius:var(--aradius);font-size:14px;font-family:var(--afont);background:#fff;cursor:pointer;flex-shrink:0}
.phone-row select:focus{outline:none;border-color:var(--orange)}
.phone-row .afi{flex:1}

.otp-grid{display:flex;gap:10px;justify-content:center;margin:20px 0}
.otp-grid input{width:48px;height:56px;text-align:center;font-size:22px;font-weight:700;border:2px solid var(--ag300);border-radius:var(--aradius);font-family:var(--afont);transition:all .15s}
.otp-grid input:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(245,124,0,0.1)}
.otp-grid input.filled{border-color:var(--orange);background:var(--orange-l)}

.btn-auth{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px;border-radius:var(--aradius);font-size:14px;font-weight:600;cursor:pointer;border:none;font-family:var(--afont);transition:all .15s}
.btn-auth:active{transform:scale(0.98)}
.btn-auth:disabled{opacity:.6;cursor:not-allowed}
.btn-orange{background:var(--orange);color:#fff}.btn-orange:hover:not(:disabled){background:var(--orange-h)}
.btn-blue{background:var(--blue);color:#fff}.btn-blue:hover:not(:disabled){background:var(--blue-h)}
.btn-outline{background:#fff;border:1.5px solid var(--ag300);color:var(--ag700)}.btn-outline:hover{background:var(--ag50);border-color:var(--ag400)}

.btn-social{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px;border:1.5px solid var(--ag300);border-radius:var(--aradius);font-size:13px;font-weight:500;cursor:pointer;background:#fff;font-family:var(--afont);transition:all .15s}
.btn-social:hover{background:var(--ag50);border-color:var(--ag400)}
.social-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}

.auth-tabs{display:flex;background:var(--ag100);border-radius:var(--aradius);padding:3px;margin-bottom:24px}
.auth-tab{flex:1;padding:10px;text-align:center;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;color:var(--ag600);transition:all .15s;border:none;background:none;font-family:var(--afont)}
.auth-tab.active{background:#fff;color:var(--ag900);box-shadow:0 1px 3px rgba(0,0,0,0.08)}

.adivider{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--ag400);font-size:12px;font-weight:500}
.adivider::before,.adivider::after{content:'';flex:1;height:1px;background:var(--ag200)}

.form-row-between{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.form-check{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;color:var(--ag700)}
.form-check input{width:16px;height:16px;accent-color:var(--orange)}
.form-link{font-size:12px;color:var(--orange);font-weight:600;cursor:pointer;background:none;border:none;font-family:var(--afont)}
.form-link:hover{text-decoration:underline}

.success-icon{width:72px;height:72px;border-radius:50%;background:var(--green-l);display:inline-flex;align-items:center;justify-content:center;margin-bottom:16px}
.success-icon i{font-size:36px;color:var(--green)}

.timer-text{font-size:13px;color:var(--ag500);text-align:center;margin-top:16px}
.timer-text span{color:var(--orange);font-weight:600}

.password-strength{margin-top:8px}
.strength-bar{height:4px;background:var(--ag200);border-radius:2px;overflow:hidden;margin-bottom:6px}
.strength-bar .fill{height:100%;border-radius:2px;transition:width .3s}
.strength-rules{display:flex;flex-wrap:wrap;gap:6px}
.strength-rule{font-size:11px;display:flex;align-items:center;gap:4px;color:var(--ag500)}
.strength-rule.pass{color:var(--green)}
.strength-rule i{font-size:12px}

.footer-text{font-size:11px;color:var(--ag500);text-align:center;margin-top:24px;line-height:1.6}
.footer-text a{color:var(--blue);font-weight:500}

.back-link{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ag600);cursor:pointer;margin-bottom:24px;background:none;border:none;font-family:var(--afont)}
.back-link:hover{color:var(--ag900)}
.back-link i{font-size:18px}

.alert-box{padding:12px 14px;border-radius:var(--aradius);font-size:12px;margin-bottom:16px;display:flex;align-items:flex-start;gap:8px}
.alert-box i{font-size:16px;flex-shrink:0;margin-top:1px}
.alert-box.info{background:var(--blue-l);color:var(--blue-d)}
.alert-box.error{background:var(--red-l);color:var(--red)}
.alert-box.success{background:var(--green-l);color:var(--green)}
