/* Shahkar Authentication System Styles - Complete */
/* File: shahkar-auth-styles.css */

/* ===== FONTS ===== */
@font-face {
    font-family: light;
    src: url(../fonts/light.eot);
    src: url(../fonts/light.eot?#iefix) format('embedded-opentype'), 
         url(../fonts/light.otf) format('otf'), 
         url(../fonts/light.svg#light) format('svg'), 
         url(../fonts/light.ttf) format('truetype'), 
         url(../fonts/light.woff) format('woff'), 
         url(../fonts/light.woff2) format('woff2')
}

@font-face {
    font-family: regular;
    src: url(../fonts/regular.eot);
    src: url(../fonts/regular.eot?#iefix) format('embedded-opentype'), 
         url(../fonts/regular.otf) format('otf'), 
         url(../fonts/regular.woff2) format('woff2'), 
         url(../fonts/regular.woff) format('woff'), 
         url(../fonts/regular.ttf) format('truetype'), 
         url(../fonts/regular.svg#regular) format('svg')
}

@font-face {
    font-family: bold;
    src: url(../fonts/bold.eot);
    src: url(../fonts/bold.eot?#iefix) format('embedded-opentype'), 
         url(../fonts/bold.otf) format('otf'), 
         url(../fonts/bold.svg#bold) format('svg'), 
         url(../fonts/bold.ttf) format('truetype'), 
         url(../fonts/bold.woff) format('woff'), 
         url(../fonts/bold.woff2) format('woff2')
}

@font-face {
    font-family: extra-bold;
    src: url(../fonts/extra-bold.eot);
    src: url(../fonts/extra-bold.eot?#iefix) format('embedded-opentype'), 
         url(../fonts/extra-bold.otf) format('otf'), 
         url(../fonts/extra-bold.svg#extra-bold) format('svg'), 
         url(../fonts/extra-bold.ttf) format('truetype'), 
         url(../fonts/extra-bold.woff) format('woff'), 
         url(../fonts/extra-bold.woff2) format('woff2')
}

/* ===== GLOBAL STYLES ===== */
:root {
    --box-border-radius: 15px;
    --big-font-size: 1.5em;
    --small-font-size: 0.75em;
    --hint-font-size: 0.7em;
    --primary-color: #4caf50;
    --primary-dark: #388e3c;
    --primary-shadow: rgba(76, 175, 80, 0.3);
    --primary-color-bg-wave: rgba(76, 175, 80, 0.1);
    --secondary-color: #2196f3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #4caf50;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --gray-color: #95a5a6;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Shahkar Specific Variables */
    --dashboad-bg-color: #f5f7fa;
    --link-color: #2196f3;
    --disable-btn-bg-color: #95a5a6;
    --disable-btn-color: #2c3e50;
    --input-border-color: #ddd;
    --input-bg-color: white;
    --input-label-color: #333;
    --black-icon: #333;
    --disable-input-bg-color: #f5f5f5;
    --disable-input-border-color: #ddd;
    --disable-input-text-color: #95a5a6;
    --btn-text-color: white;
    --box-border-color: #e0e0e0;
    --box-color: white;
    --login-link-hover-color: #1976d2;
    --hint-color: #666;
    --login-way-text-color: #666;
    --break-line-color: #ddd;
    --login-with-google-border-color: #ddd;
    --login-with-google-text-color: #333;
    --login-with-google-hover-border-color: #4caf50;
}




/* ===== UTILITY CLASSES ===== */
.light-font { font-family: light, serif; }
.regular-font { font-family: regular, serif; }
.bold-font { font-family: bold, serif; }
.extra-font { font-family: extra-bold, serif; }
.big-font { font-size: 1.5em; }
.medium-font { font-size: 1em; }
.small-font { font-size: 0.8em; }
.ltr { direction: ltr; }
.pointer { cursor: pointer; }
.anime { transition: var(--transition); }

/* ===== FORM ELEMENTS ===== */
input {
    font-family: regular, serif;
    border: 1px solid var(--input-border-color);
    background: var(--input-bg-color);
    border-radius: 10px;
    color: var(--input-label-color);
    transition: var(--transition);
    font-size: var(--small-font-size);
}

input:focus {
    border-color: var(--primary-shadow);
}

input:focus + .input-icon svg {
    fill: var(--primary-color);
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

::placeholder {
    color: #696969;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #696969;
}

/* ===== LABELS & INPUTS ===== */
label {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: flex-start;
    margin: 10px 0;
    position: relative;
}

label span {
    color: var(--input-label-color);
    margin: 0 0 10px;
}

input[type="password"],
input[type="text"] {
    padding: 15px 10px 15px 50px;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    text-align: right;
}

/* ===== INPUT ICONS ===== */
label .input-icon {
    position: absolute;
    bottom: 1px;
    left: 1px;
    width: 50px;
    height: 50px;
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    align-items: center;
}

label .input-icon svg {
    fill: #6a6a6a;
    width: 18px;
}

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

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary-color);
    font-family: bold, serif;
    font-size: 0.9em;
    color: var(--btn-text-color);
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 15px 10px;
}


.submit-btn:hover {
    box-shadow: 0 5px 15px var(--primary-shadow);
    transform: translateY(-2px);
}


.submit-btn:disabled {
    background-color: var(--disable-btn-bg-color);
    color: var(--disable-btn-color);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ===== DISABLED STATES ===== */
input:disabled,
input[type="submit"]:disabled {
    background: var(--disable-input-bg-color);
    border: 1px solid var(--disable-input-border-color);
    color: var(--disable-input-text-color);
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    width: 20px;
    animation: spin 1s linear infinite;
    fill: #7f8c8d;
    display: none;
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== MAIN LOGIN BOX ===== */
.login-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white!important;
    min-height: 100vh;
    padding: 20px;
}

.login-1, .login-2 {
    
    border-radius: var(--box-border-radius);
   background-color: white!important;
    display: flex;
    position: relative;
}

.login-1 {
    width: 350px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
}

.login-2 {
    width: 768px;
    padding: 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGIN BOX SECTIONS ===== */
.login-box-right {
    width: 350px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.login-box-left {
    max-width: 400px;
    max-height: 500px;
}

.login-box-left img {
    width: 100%;
    height: auto;
}

/* Hide left section in auth-1 */
.login-1 .login-box-left img {
    display: none !important;
}

/* ===== AUTH STEPS ===== */
.shahkar_auth_step {
    display: none;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.shahkar_auth_step:first-of-type {
    display: flex;
}

/* ===== LOGIN FORM ===== */
.login-form-1, .login-form-2 {
    width: 100%;
    margin-top: 20px;
}

.login-title {
    color: var(--primary-color);
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 10px;
}

.login-hint {
    color: var(--hint-color);
    font-size: 0.8em;
    margin-top: 5px;
    text-align: center;
    line-height: 1.6;
}

/* ===== CENTERED LINES ===== */
.centered-lines {
    width: 100%;
    text-align: center;
    margin: 30px 0;
    color: var(--login-way-text-color);
    font-size: var(--hint-font-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

.line {
    display: inline-block;
    width: 50px;
    height: 1px;
    margin: 2px 15px;
    background: var(--break-line-color);
}

/* ===== ALTERNATIVE LOGIN METHODS ===== */
.shahkar_other_login_way {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.shahkar_other_login_way > .way {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border: 1px solid var(--login-with-google-border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--login-with-google-text-color);
    transition: var(--transition);
    font-size: 0.9em;
}

.shahkar_other_login_way > .way:hover {
    border-color: var(--login-with-google-hover-border-color);
}

.shahkar_other_login_way svg {
    fill: var(--black-icon);
    width: 20px;
    height: 20px;
}

/* ===== WEBSITE LOGO ===== */
.website-logo {
    text-align: center;
    margin-bottom: 30px;
}

.website-logo img {
    max-width: 120px;
    height: auto;
}

/* ===== OTP STYLES ===== */
.otp {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.resend-otp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.resend-otp span {
    margin: 0;
}

.otp-inputs {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 10px;
}

.otp-input {
    font-size: 1em;
    width: 50px !important;
    height: 50px;
    text-align: center;
    font-family: extra-bold, serif !important;
    padding: 10px !important;
}

.otp-input::placeholder {
    text-align: center;
}

/* ===== RESEND CODE ===== */
.shahkar_auth_resend_code_box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.shahkar_auth_resend_code_btn {
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--primary-color);
    font-family: bold;
    font-size: 12px;
    background: transparent;
    transition: var(--transition);
}

.shahkar_auth_resend_code_btn:hover {
    background: var(--primary-color);
    color: white;
}

.shahkar_auth_resend_code_btn:disabled {
    background: #696969 !important;
    color: #121212;
    opacity: 0.2;
    border: 1px solid transparent;
    cursor: not-allowed;
}

.shahkar_auth_resend_code_timer {
    color: var(--input-label-color);
    font-family: regular;
    font-size: 13px;
}

/* ===== LOGIN OPTIONS ===== */
.shahkarAuthPopupLoginWays {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    gap: 10px;
    padding: 10px 0;
}

.shahkarAuthPopupLoginWays a {
    text-align: center;
    flex: 1;
    font-size: 13px;
    text-decoration: none;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--login-with-google-border-color);
    border-radius: 5px;
    color: var(--input-label-color);
    font-family: bold;
    transition: var(--transition);
}

.shahkarAuthPopupLoginWays a svg {
    width: 20px;
    margin-left: 7px;
    fill: var(--black-icon);
    opacity: 0.5;
}

.shahkarAuthPopupLoginWays a:hover {
    border: 1px solid rgba(200, 200, 200, 0.3);
}

/* ===== BACK BUTTON ===== */
.shahkarBackBtn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-family: bold;
    margin-top: 15px;
    cursor: pointer;
    opacity: 0.5;
    width: 100%;
    justify-content: flex-end;
    transition: var(--transition);
    color: var(--input-label-color) !important;
}

.shahkarBackBtn:hover {
    opacity: 1;
}

.shahkarBackBtn svg {
    width: 15px;
    margin-right: 7px;
    fill: var(--input-label-color) !important;
}

/* ===== LOADER ===== */
.shahkar_auth_loader_cover {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--box-color);
    z-index: 99999;
    border-radius: var(--box-border-radius);
}

.shahkar_auth_loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color-bg-wave);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

/* ===== LANGUAGE SWITCHER ===== */
.shahkar-change-language-box {
    cursor: pointer;
    display: flex;
    margin-top: 20px;
    border-radius: 15px;
    width: calc(100% - 20px);
    font-size: 13px;
    align-items: center;
    font-family: extra-bold;
    justify-content: space-between;
    background: var(--input-bg-color);
    color: var(--input-label-color);
    padding: 5px 10px;
}

.shahkar-change-language-items {
    display: flex;
    gap: 10px;
}

.shahkar-change-language-item {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border-radius: 5px;
}

.shahkar-change-language-item:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.05);
}

.shahkar-change-language-item span {
    margin-left: 7px;
}

.shahkar-change-language-item svg {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* ===== WAVES ===== */
.shahkar-wave-box, .shahkar-wave-box-mobile {
    width: 100%;
    position: absolute;
    right: 0;
    left: 0;
    z-index: 0;
}

.shahkar-wave-box {
    bottom: 0;
}

.shahkar-wave-box-mobile {
    transform: rotate(180deg);
    top: 0;
    display: none;
}

.shahkar-wave-box svg,
.shahkar-wave-box-mobile svg {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.shahkar-wave-box svg path,
.shahkar-wave-box-mobile svg path {
    fill: var(--primary-color) !important;
}

/* ===== BOTTOM LINKS ===== */
.login-box .bottom-links {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.login-box .bottom-links a {
    margin-top: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed #696969;
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

.login-box .bottom-links a:hover {
    color: var(--login-link-hover-color);
}

/* ===== TOASTIFY ===== */
.toastify.on {
    font-family: regular;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 768px) {
    
    
    .login-box {
        align-items: normal;
        min-height: auto;
        padding: 0;
    }
    
    .login-1, .login-2, .login-box-right {
        width: 100% !important;
        border: none;
        border-radius: 0;
        height: 100vh;
        justify-content: center;
    }
    
    .shahkar_auth_loader_cover {
        border-radius: 0;
    }
    
    .login-2 .login-2-left,
    .login-box-left {
        display: none;
    }
    
    .login-title {
        font-size: 1.3em;
    }
    
    .login-hint {
        text-align: center;
        padding: 0 10px;
    }
    
    .centered-lines .line {
        width: 30px;
    }
    
    .shahkar-wave-box-mobile {
        display: block;
    }
    
    .shahkar_other_login_way {
        flex-direction: column;
    }
    
    .otp-input {
        width: 45px !important;
        height: 45px;
        font-size: 0.9em;
    }
    
    .shahkar-change-language-items {
        flex-direction: column;
        align-items: center;
    }
    
    .shahkar-change-language-item {
        width: 150px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .login-box-right {
        padding: 10px;
    }
    
    input[type="password"],
    input[type="text"] {
        padding: 12px 10px 12px 40px;
        font-size: 14px;
    }
    
    .otp-input {
        width: 40px !important;
        height: 40px;
        font-size: 0.8em;
    }
    
    .shahkar_auth_resend_code_box {
        flex-direction: column;
        gap: 10px;
    }
    
    .shahkarAuthPopupLoginWays {
        flex-direction: column;
    }
    
    .shahkar_other_login_way > .way {
        padding: 12px;
        font-size: 0.8em;
    }
}

/* ===== ANIMATIONS FOR OTP ===== */
.otp-input.valid {
    border-color: #27ae60 !important;
    animation: pulse 0.5s ease-in-out;
}

.otp-input.invalid {
    border-color: #e84118 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== DARK THEME SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --dashboad-bg-color: #1a1a2e;
        --box-color: #222;
        --input-bg-color: #333;
        --input-label-color: #f5f5f5;
        --input-border-color: #555;
        --box-border-color: #444;
        --hint-color: #888;
        --login-way-text-color: #888;
        --break-line-color: #555;
        --login-with-google-border-color: #555;
        --login-with-google-text-color: #fff;
        --black-icon: #fff;
    }
    
   
    
    input {
        background: #333;
        color: white;
        border-color: #555;
    }
    
    input:focus {
        border-color: var(--primary-color);
    }
}

/* ===== RTL/LTR SUPPORT ===== */
[dir="rtl"] label .input-icon {
    left: 1px;
    right: auto;
}

[dir="ltr"] label .input-icon {
    left: auto;
    right: 1px;
    border-radius: 0 10px 10px 0;
}

[dir="ltr"] input[type="password"],
[dir="ltr"] input[type="text"] {
    padding: 15px 50px 15px 10px;
}

[dir="ltr"] .shahkarBackBtn {
    justify-content: flex-start;
}

[dir="ltr"] .shahkarBackBtn svg {
    margin-right: 0;
    margin-left: 7px;
}

[dir="ltr"] .shahkar-change-language-item span {
    margin-left: 0;
    margin-right: 7px;
}

[dir="ltr"] .shahkarAuthPopupLoginWays a svg {
    margin-left: 0;
    margin-right: 7px;
}