/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    font-family:Arial,sans-serif;
}

/* =========================================
   BODY
========================================= */

body{
    min-height:100vh;
    background:linear-gradient(135deg,#f6c640,#d89b00);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px 15px;
}

/* =========================================
   CARD
========================================= */

.auth-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.auth-card{
    width:100%;
    max-width:470px;
    background:#f8f8f8;
    border-radius:38px;
    padding:40px 34px;
    box-shadow:14px 14px 0 #111827;
    position:relative;
}

/* =========================================
   BRAND
========================================= */

.brand{
    text-align:center;
    margin-bottom:30px;
}

.logo{
    font-size:64px;
    font-weight:900;
    color:#111827;
    line-height:1;
}

.logo span{
    color:#ef2f39;
}

.brand p{
    margin-top:10px;
    color:#7d7d7d;
    font-size:18px;
}

/* =========================================
   TITLES
========================================= */

h2{
    text-align:center;
    font-size:52px;
    color:#111827;
    margin-bottom:12px;
    font-weight:900;
}

.subtitle{
    text-align:center;
    color:#8d8d8d;
    font-size:18px;
    margin-bottom:35px;
}

/* =========================================
   FORM GROUP
========================================= */

.form-group{
    margin-bottom:22px;
}

.form-group label{
    display:block;
    margin-bottom:10px;
    color:#111827;
    font-size:20px;
    font-weight:bold;
    text-align:right;
}

html[dir="ltr"] .form-group label{
    text-align:left;
}

/* =========================================
   PHONE ROW
========================================= */

.phone-row{
    display:flex !important;
    flex-direction:row !important;
    direction:ltr !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
}

/* =========================================
   COUNTRY INPUT
========================================= */

.country-box{
    width:120px !important;
    min-width:120px !important;
    max-width:120px !important;
    flex:0 0 120px !important;
}

.country-box .iti{
    width:120px !important;
    display:block !important;
}

.country-box .iti input,
#countryCode{
    width:120px !important;
    height:70px !important;
    border:none !important;
    border-radius:24px !important;
    background:white !important;
    font-size:18px !important;
    color:#111827 !important;
    padding-left:58px !important;
    padding-right:8px !important;
    box-shadow:0 0 0 2px #ececec inset !important;
    direction:ltr !important;
    text-align:left !important;
}

.country-box .iti__flag-container{
    left:0 !important;
    right:auto !important;
}

.country-box .iti__selected-flag{
    padding:0 10px !important;
}

/* =========================================
   PHONE INPUT
========================================= */

.phone-input{
    flex:1 !important;
    height:70px !important;
    border:none !important;
    border-radius:24px !important;
    background:white !important;
    padding:0 18px !important;
    font-size:20px !important;
    color:#111827 !important;
    box-shadow:0 0 0 2px #ececec inset !important;
    min-width:0 !important;
    width:auto !important;
    direction:ltr !important;
    text-align:left !important;
}

.phone-input::placeholder{
    color:#9a9a9a;
}

/* =========================================
   LOGIN INPUTS
========================================= */

.login-inputs input,
.password-section input{
    width:100%;
    height:64px;
    border:none;
    border-radius:22px;
    background:white;
    padding:0 18px;
    margin-bottom:12px;
    font-size:17px;
    box-shadow:0 0 0 2px #ececec inset;
}

.password-section{
    margin-top:10px;
}

.password-section input{
    display:none;
}

html[dir="rtl"] .login-inputs input{
    text-align:right;
}

html[dir="ltr"] .login-inputs input{
    text-align:left;
}

/* =========================================
   INPUT FOCUS
========================================= */

.phone-input:focus,
.country-box .iti input:focus,
#countryCode:focus,
.password-section input:focus,
.otp-boxes input:focus,
.login-inputs input:focus,
.password-wrapper input:focus{
    outline:none;
    box-shadow:0 0 0 2px #ef2f39 inset !important;
}

/* =========================================
   PASSWORD TOGGLE
========================================= */

.password-wrapper{
    position:relative !important;
    width:100% !important;
}

.password-wrapper input{
    width:100% !important;
    padding-inline-end:60px !important;
}

.password-toggle{
    position:absolute !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    inset-inline-end:18px !important;

    width:40px !important;
    height:40px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    background:transparent !important;
    border:none !important;
    box-shadow:none !important;

    color:#777 !important;
    font-size:20px !important;

    cursor:pointer !important;

    z-index:99999 !important;

    padding:0 !important;
}

.password-toggle i{
    pointer-events:none !important;
}

.password-toggle:hover{
    color:#ef2f39 !important;
}

/* =========================================
   PASSWORD HINT
========================================= */

.password-hint{
    display:block;
    font-size:13px;
    margin:-4px 0 10px;
    text-align:right;
}

html[dir="ltr"] .password-hint{
    text-align:left;
}

.password-hint.error{
    color:#e74c3c;
}

.password-hint.success{
    color:#2ecc71;
}

/* =========================================
   BUTTONS
========================================= */

.main-btn{
    width:100%;
    height:76px;
    border:none;
    border-radius:28px;
    background:#ef2f39;
    color:white;
    font-size:34px;
    font-weight:900;
    cursor:pointer;
    transition:.25s;
}

.main-btn:hover{
    opacity:.92;
}

.main-btn:disabled{
    background:#d3d6df;
    cursor:not-allowed;
}

.create-btn,
.reset-btn{
    background:#d9dce5;
    color:white;
    margin-top:16px;
}

.create-btn:not(:disabled),
.reset-btn:not(:disabled){
    background:#ef2f39 !important;
    color:#fff !important;
    cursor:pointer !important;
}

.create-btn:disabled,
.reset-btn:disabled{
    background:#d3d6df !important;
    color:#fff !important;
    cursor:not-allowed !important;
}
/* =========================================
   OTP
========================================= */

.otp-label{
    text-align:center;
    margin:34px 0 20px;
    color:#7b7b7b;
    font-size:18px;
}

.otp-boxes{
    display:none;
    justify-content:center;
    gap:14px;
    direction:ltr;
    margin-bottom:20px;
}

.otp-boxes input{
    width:70px;
    height:70px;
    border:none;
    border-radius:22px;
    background:white;
    font-size:32px;
    text-align:center;
    box-shadow:0 0 0 2px #ececec inset;
}

/* =========================================
   DIVIDER
========================================= */

.divider{
    display:flex;
    align-items:center;
    gap:15px;
    margin:28px 0 18px;
}

.divider::before,
.divider::after{
    content:"";
    flex:1;
    height:1px;
    background:#e4e4e4;
}

.divider span{
    color:#7c7c7c;
    font-size:18px;
}

/* =========================================
   LINKS
========================================= */

.bottom-text{
    text-align:center;
    font-size:18px;
    color:#111827;
}

html[dir="ltr"] .bottom-text{
    direction:ltr;
}

.bottom-text a{
    color:#ef2f39;
    text-decoration:none;
    font-weight:bold;
}

.bottom-text a:hover{
    text-decoration:underline;
}

/* =========================================
   FORGOT PASSWORD LINK
========================================= */

.forgot-row{
    text-align:left;
    margin:6px 0 18px;
}

html[dir="rtl"] .forgot-row{
    text-align:right;
}

.forgot-row a{
    color:#ef2f39;
    font-size:15px;
    text-decoration:none;
    font-weight:bold;
}

.forgot-row a:hover{
    text-decoration:underline;
}

/* =========================================
   LANGUAGE BUTTON
========================================= */

.lang-switcher{
    margin-top:22px;
    display:flex;
    justify-content:center;
}

.lang-btn-bottom{
    border:none;
    background:#111827;
    color:white;
    padding:10px 18px;
    border-radius:22px;
    cursor:pointer;
    font-size:14px;
    transition:.25s;
}

.lang-btn-bottom:hover{
    opacity:.9;
}

/* =========================================
   COUNTRY DROPDOWN
========================================= */

.iti__country-list{
    width:320px !important;
    max-width:calc(100vw - 40px) !important;
    border-radius:20px !important;
    overflow-x:hidden !important;
    max-height:320px !important;
    z-index:999999 !important;
    left:0 !important;
    right:auto !important;
    direction:ltr !important;
    text-align:left !important;
}

.iti__country{
    padding:12px 14px !important;
    font-size:15px !important;
    white-space:normal !important;
    line-height:1.5 !important;
}

/* =========================================
   TOAST
========================================= */

#toast{
    position:fixed;
    bottom:25px;
    left:50%;
    transform:translateX(-50%);
    padding:14px 24px;
    border-radius:30px;
    color:white;
    font-size:15px;
    z-index:999999;
    opacity:0;
    pointer-events:none;
    transition:.3s;
}

#toast.show{
    opacity:1;
}

#toast.success{
    background:#2ecc71;
}

#toast.error{
    background:#e74c3c;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width:480px){

    body{
        padding:22px 10px;
        align-items:flex-start;
    }

    .auth-card{
        width:100%;
        max-width:390px;
        padding:28px 20px;
        border-radius:28px;
        box-shadow:10px 10px 0 #111827;
    }

    .logo{
        font-size:42px;
    }

    .brand p{
        font-size:15px;
    }

    h2{
        font-size:34px;
    }

    .subtitle{
        font-size:15px;
        margin-bottom:24px;
    }

    .form-group label{
        font-size:16px;
    }

    .phone-row{
        gap:8px !important;
    }

    .country-box{
        width:112px !important;
        min-width:112px !important;
        max-width:112px !important;
        flex:0 0 112px !important;
    }

    .country-box .iti{
        width:112px !important;
    }

    .country-box .iti input,
    #countryCode{
        width:112px !important;
        height:58px !important;
        border-radius:20px !important;
        font-size:15px !important;
        padding-left:48px !important;
        padding-right:6px !important;
    }

    .phone-input{
        height:58px !important;
        border-radius:20px !important;
        font-size:16px !important;
        padding:0 12px !important;
    }

    .login-inputs input,
    .password-section input,
    .password-wrapper input{
        height:58px !important;
        border-radius:18px !important;
        font-size:15px !important;
    }

    .password-toggle{
        width:38px !important;
        height:38px !important;
        font-size:18px !important;
        inset-inline-end:14px !important;
    }

    .main-btn{
        height:64px;
        border-radius:24px;
        font-size:22px;
    }

    .otp-label{
        font-size:15px;
    }

    .otp-boxes{
        gap:8px;
    }

    .otp-boxes input{
        width:52px;
        height:52px;
        border-radius:16px;
        font-size:22px;
    }

    .divider span{
        font-size:15px;
    }

    .bottom-text{
        font-size:15px;
    }

    .forgot-row a{
        font-size:14px;
    }

    .iti__country-list{
        width:300px !important;
        max-width:calc(100vw - 30px) !important;
        max-height:300px !important;
        border-radius:18px !important;
    }

    .iti__country{
        font-size:14px !important;
        padding:11px !important;
    }
}



.auth-input{
    width:100% !important;
    height:64px !important;
    border:none !important;
    border-radius:22px !important;
    background:white !important;
    padding:0 18px !important;
    margin-bottom:12px !important;
    font-size:17px !important;
    box-shadow:0 0 0 2px #ececec inset !important;
}

.auth-input:focus{
    outline:none !important;
    box-shadow:0 0 0 2px #ef2f39 inset !important;
}

.about-card{
    text-align:center;
}

.about-subtitle{
    line-height:1.7;
}

.about-section{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin:25px 0;
}

.about-item{
    display:flex;
    gap:14px;
    text-align:left;
    background:#fff;
    padding:16px;
    border-radius:22px;
    box-shadow:0 0 0 2px #ececec inset;
}

.about-item i{
    color:#ef2f39;
    font-size:24px;
    margin-top:4px;
}

.about-item h3{
    color:#111827;
    font-size:18px;
    margin-bottom:6px;
}

.about-item p{
    color:#777;
    font-size:14px;
    line-height:1.5;
}

.contact-box{
    background:#111827;
    color:#fff;
    border-radius:24px;
    padding:18px;
    margin-top:20px;
    text-align:left;
}

.contact-box h3{
    margin-bottom:12px;
    font-size:20px;
}

.contact-box p{
    font-size:14px;
    margin:10px 0;
}

.contact-box i{
    color:#f6c640;
    margin-right:8px;
}

.about-btn{
    margin-top:20px;
    font-size:24px;
}

@media(max-width:480px){
    .about-item{
        padding:14px;
    }

    .about-item h3{
        font-size:16px;
    }

    .about-item p{
        font-size:13px;
    }

    .contact-box{
        padding:16px;
    }
}
.about-item{
    display:flex;
    gap:14px;
    background:#fff;
    padding:16px;
    border-radius:22px;
    box-shadow:0 0 0 2px #ececec inset;
    transition:.25s;
}

/* Arabic */

html[dir="rtl"] .about-item{
    flex-direction:row-reverse;
    justify-content:space-between;
    text-align:right;
}

/* English */

html[dir="ltr"] .about-item{
    flex-direction:row;
    justify-content:space-between;
    text-align:left;
}

/* Contact box */

html[dir="rtl"] .contact-box{
    text-align:right;
}

html[dir="ltr"] .contact-box{
    text-align:left;
}

.contact-number{
    direction:ltr !important;
    unicode-bidi:embed;
}
.about-login-row{
    text-align:center;
    margin:10px 0 22px;
}

.about-inline-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    color:#111827 !important;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    opacity:.75;
}

.about-inline-link i{
    display:inline-block;
    font-size:12px;
    color:#ef2f39;
}

.about-inline-link:hover{
    opacity:1;
    transform:translateY(-1px);
}

.clean-forgot{
    margin:4px 0 16px;
}

html[dir="ltr"] .clean-forgot{
    text-align:left;
}

html[dir="rtl"] .clean-forgot{
    text-align:right;
}

.clean-forgot a{
    font-size:13px;
    font-weight:700;
}
