﻿
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --auth-primary: #0F3D3E;
    --auth-primary-hover: #155253;
    --auth-gold: #D4A017;
    --auth-text: #202B2B;
    --auth-muted: #7B8585;
    --auth-border: #E5EAEA;
    --auth-background: #F5F8F7;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: radial-gradient(circle at 10% 10%, rgba(212, 160, 23, .09), transparent 30%), radial-gradient(circle at 90% 90%, rgba(15, 61, 62, .08), transparent 30%), var(--auth-background);
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid rgba(15, 61, 62, .07);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 16px 50px rgba(15, 61, 62, .07);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--auth-primary);
    font-size: 23px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 38px;
}

.auth-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--auth-primary);
    color: #fff;
    font-size: 24px;
}

.auth-heading {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-heading h1 {
        color: var(--auth-text);
        font-size: 24px;
        font-weight: 800;
        margin: 0 0 12px;
    }

    .auth-heading p {
        color: var(--auth-muted);
        font-size: 13px;
        line-height: 2;
        margin: 0;
    }

    .auth-heading strong {
        color: var(--auth-primary);
        font-weight: 700;
        margin: 0 4px;
    }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .form-group label {
        color: var(--auth-text);
        font-size: 13px;
        font-weight: 700;
    }

.auth-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    outline: none;
    background: #FAFCFB;
    color: var(--auth-text);
    font-family: inherit;
    font-size: 15px;
    transition: .2s ease;
    box-sizing: border-box;
}

    .auth-input:focus {
        border-color: var(--auth-primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(15, 61, 62, .07);
    }

    .auth-input::placeholder {
        color: #B5BDBD;
    }

.phone-input-wrapper {
    display: flex;
    align-items: center;
    direction: ltr;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #FAFCFB;
    transition: .2s ease;
    overflow: hidden;
}

    .phone-input-wrapper:focus-within {
        border-color: var(--auth-primary);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(15, 61, 62, .07);
    }

.phone-prefix {
    padding: 0 16px;
    color: var(--auth-primary);
    font-size: 14px;
    font-weight: 700;
    border-right: 1px solid var(--auth-border);
    height: 54px;
    display: flex;
    align-items: center;
}

.phone-input {
    border: none;
    background: transparent;
    box-shadow: none !important;
    direction: ltr;
    text-align: left;
}

    .phone-input:focus {
        border: none;
    }

.input-hint {
    color: var(--auth-muted);
    font-size: 11px;
}

.auth-submit {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: var(--auth-primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .2s ease;
}

    .auth-submit:hover {
        background: var(--auth-primary-hover);
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(15, 61, 62, .16);
    }

.button-arrow {
    color: var(--auth-gold);
    font-size: 19px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 18px;
    color: #A0AAAA;
    font-size: 11px;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: var(--auth-border);
    }

.auth-footer {
    text-align: center;
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 2;
    margin: 0;
}

    .auth-footer a {
        color: var(--auth-primary);
        font-weight: 700;
        text-decoration: none;
    }

.back-home {
    display: block;
    width: fit-content;
    margin: 26px auto 0;
    color: var(--auth-muted);
    font-size: 12px;
    text-decoration: none;
    transition: .2s;
}

    .back-home:hover {
        color: var(--auth-primary);
    }

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.auth-alert-error {
    color: #A93232;
    background: #FFF1F1;
    border: 1px solid #F8D5D5;
}

/* OTP */

.otp-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, .12);
    color: var(--auth-gold);
    font-size: 28px;
}

.otp-input {
    direction: ltr;
    text-align: center;
    letter-spacing: 12px;
    font-size: 24px;
    font-weight: 800;
    padding-left: 12px;
}

.otp-resend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 26px;
    color: var(--auth-muted);
    font-size: 12px;
}

.resend-form {
    display: inline;
}

.resend-button {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--auth-primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

    .resend-button:hover {
        color: var(--auth-gold);
    }

/* Responsive */

@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .auth-logo {
        margin-bottom: 30px;
    }

    .auth-heading h1 {
        font-size: 21px;
    }
}
