/*
 * VIP giriş penceresi (#auth-modal) tamamlayıcı stilleri — index.php ve esim.php.
 * Pencerenin ana stilleri css/style.css içinde (.glass-modal-*, .access-portal-*, .portal-*) kalır;
 * burası telefon alanı (intl-tel-input) ve şifre/uyarı yardımcılarını taşır. index.php'deki inline <style>'dan taşındı.
 */
.input-group-phone .iti{width:100%;display:block}
.input-group-phone .iti--allow-dropdown .iti__flag-container{z-index:6}
.input-group-phone .iti__flag-container{padding-left:10px}
.input-group-phone .iti__selected-flag{background:transparent!important;border-radius:14px!important;padding:0 10px 0 8px!important}
.input-group-phone .iti__selected-dial-code{color:inherit;font-weight:700;margin-left:6px}
.input-group-phone .iti__arrow{margin-left:8px}
.input-group-phone .iti input{padding-left:118px!important}
.input-group-phone .iti__country-list{background:rgba(12,12,12,.96);color:#f5efe3;border:1px solid rgba(197,160,89,.18);border-radius:16px;box-shadow:0 20px 48px rgba(0,0,0,.38)}
.input-group-phone .iti__country.iti__highlight{background:rgba(197,160,89,.12)}
body.light-mode .input-group-phone .iti__country-list{background:#fff;color:#1c1712;border-color:rgba(197,160,89,.16);box-shadow:0 18px 40px rgba(111,81,30,.16)}
body.light-mode .input-group-phone .iti__country.iti__highlight{background:rgba(197,160,89,.08)}
#auth-modal .input-group{position:relative}
#auth-modal .portal-password-input{padding-right:96px}
#auth-modal .portal-password-eye,
#auth-modal .portal-password-generate{position:absolute;top:50%;transform:translateY(-50%);z-index:5;border:0;background:transparent;color:rgba(255,248,232,.42);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-family:inherit;transition:color .2s,background .2s,border-color .2s}
#auth-modal .portal-password-eye{right:14px;width:30px;height:30px;border-radius:999px}
#auth-modal .portal-password-eye:hover{color:rgba(255,248,232,.88);background:rgba(255,255,255,.06)}
#auth-modal .portal-password-generate{right:48px;height:28px;padding:0 10px;border:1px solid rgba(215,174,89,.24);border-radius:999px;background:rgba(215,174,89,.10);color:#e7c779;font-size:9px;font-weight:900;letter-spacing:normal;text-transform:none}
#auth-modal .portal-password-generate:hover{background:rgba(215,174,89,.20);border-color:rgba(215,174,89,.42);color:#ffe5a6}
#auth-modal .portal-field-note{min-height:15px;margin-top:-6px;margin-bottom:2px;font-size:10px;line-height:1.45;font-weight:800;letter-spacing:.7px;color:rgba(255,248,232,.38)}
#auth-modal .portal-field-note.is-error{color:#ff8c7f}
#auth-modal .portal-field-note.is-success{color:#67d99a}
#auth-modal .portal-strength{display:flex;align-items:center;gap:9px;margin-top:-5px;margin-bottom:2px}
#auth-modal .portal-strength-track{flex:1;height:4px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
#auth-modal .portal-strength-fill{height:100%;width:0;border-radius:999px;background:transparent;transition:width .22s,background .22s}
#auth-modal .portal-strength-label{min-width:76px;text-align:right;font-size:10px;font-weight:900;letter-spacing:normal;text-transform:none;color:rgba(255,248,232,.38)}
#auth-modal .portal-input-invalid{border-color:rgba(255,92,78,.72)!important;box-shadow:0 0 0 3px rgba(255,92,78,.10)!important}
#auth-modal .portal-input-valid{border-color:rgba(80,210,135,.58)!important;box-shadow:0 0 0 3px rgba(80,210,135,.08)!important}
body.light-mode #auth-modal .portal-password-eye{color:rgba(28,23,18,.42)}
body.light-mode #auth-modal .portal-password-eye:hover{color:rgba(28,23,18,.78);background:rgba(0,0,0,.05)}
body.light-mode #auth-modal .portal-password-generate{background:rgba(197,160,89,.12);border-color:rgba(197,160,89,.25);color:#8b6820}
body.light-mode #auth-modal .portal-field-note{color:rgba(28,23,18,.42)}
body.light-mode #auth-modal .portal-field-note.is-error{color:#b02818}
body.light-mode #auth-modal .portal-field-note.is-success{color:#1a7848}
/* GZ-CORP-01: acenta basvurusu - sifre notu ve tesekkur durumu */
#auth-modal .portal-agency-password-note{margin:2px 0 4px;font-size:12px;line-height:1.5;color:rgba(255,248,232,.60)}
#auth-modal .portal-agency-thanks{padding:18px 4px;text-align:left;color:rgba(255,248,232,.86)}
#auth-modal .portal-agency-thanks strong{display:block;margin-bottom:8px;font-size:17px;color:#e7c779}
#auth-modal .portal-agency-thanks p{margin:0;font-size:14px;line-height:1.6}
#auth-modal .portal-agency-thanks:focus{outline:none}
body.light-mode #auth-modal .portal-agency-password-note{color:rgba(28,23,18,.62)}
body.light-mode #auth-modal .portal-agency-thanks{color:rgba(28,23,18,.84)}
body.light-mode #auth-modal .portal-agency-thanks strong{color:#8b6820}
body.light-mode #auth-modal .portal-strength-track{background:rgba(28,23,18,.10)}

/* Esc / odak yönetimi için pencere kutusuna odak verilir; halka görünmesin. */
#auth-modal .access-portal-box:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
    #auth-modal,
    #auth-modal .access-portal-box,
    #auth-modal .portal-pane.active,
    #auth-modal .close-modal-btn,
    #auth-modal .modal-btn::before,
    #auth-modal .portal-strength-fill { animation: none !important; transition: none !important; }
}

/* GZ-I18N-C1: right-to-left (Arabic). The panel text flows right to left; email, phone, code and password fields stay left to right,
   their buttons and the phone-number widget keep the places they have in the left-to-right layout. */
#auth-modal[dir="rtl"] .access-portal-box,
#auth-modal[dir="rtl"] .access-portal-hero,
#auth-modal[dir="rtl"] .portal-content { text-align: right; }
#auth-modal[dir="rtl"] input[type="email"],
#auth-modal[dir="rtl"] input[type="tel"],
#auth-modal[dir="rtl"] input[type="password"],
#auth-modal[dir="rtl"] input[name="code"],
#auth-modal[dir="rtl"] input[name="verified_phone"] { direction: ltr; text-align: left; }
#auth-modal[dir="rtl"] .switch-selector {
    left: auto;
    right: calc(4px + ((100% - 8px) / var(--auth-sector-count, 3)) * var(--auth-sector-index, 0));
    transition: right .38s cubic-bezier(.25,1,.5,1), width .22s ease;
}
#auth-modal[dir="rtl"] .close-modal-btn { right: auto; left: 14px; }
@media (prefers-reduced-motion: reduce) {
    #auth-modal[dir="rtl"] .switch-selector { transition: none !important; }
}
