﻿@font-face {
    font-family: "Iran1";
    src: url("/styles/webfonts/IRANSansWeb_UltraLight_FaNum.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Iran1";
    src: url("/styles/webfonts/IRANSansWeb_Light_FaNum.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Iran1";
    src: url("/styles/webfonts/IRANSansWeb_FaNum.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Iran1";
    src: url("/styles/webfonts/IRANSansWeb_Medium_FaNum.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Iran1";
    src: url("/styles/webfonts/IRANSansWeb_Bold_FaNum.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Iran1";
    src: url("/styles/webfonts/IRANSansWeb_Black_FaNum.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap
}

body {
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa, #e4ecfb);
    direction: rtl;
    font-family: Iran1;
}
input,button {
    font-family: Iran1;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    padding: 28px 22px;
}

/* لوگو */
.auth-logo {
    text-align: center;
    margin-bottom: 18px;
}

    .auth-logo img {
        width: 86px;
        height: 86px;
        object-fit: contain;
    }

    .auth-logo h2 {
        margin: 10px 0 6px;
        font-size: 22px;
        color: #1f2d3d;
    }

    .auth-logo p {
        margin: 0;
        font-size: 13px;
        color: #7b8a97;
    }

/* tabs */
.tabs {
    display: flex;
    gap: 10px;
    background: #f4f7fb;
    border: 1px solid #e1e9f5;
    border-radius: 12px;
    padding: 6px;
    margin: 18px 0 16px;
}

.tab {
    flex: 1;
    border: none;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #4b5b6a;
}

    .tab.active {
        background: #fff;
        box-shadow: 0 6px 16px rgba(0,0,0,.08);
        color: #1f2d3d;
        font-weight: 600;
    }

/* mode switch */
.mode-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

    .mode-switch label {
        flex: 1;
        background: #f7f9fc;
        border: 1px solid #dde6f2;
        border-radius: 10px;
        padding: 10px;
        text-align: center;
        cursor: pointer;
    }

/* فرم */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-control {
    height: 44px;
    border: 1px solid #d7dfeb;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: .2s;
}

    .form-control:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74,144,226,.12);
    }

/* دکمه‌ها */
.btn-primary, .btn-secondary, .btn-success {
    border: none;
    border-radius: 10px;
    height: 44px;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.btn-primary {
    background: #4a90e2;
    color: #fff;
}

    .btn-primary:hover {
        background: #357bd1;
    }

.btn-success {
    background: #2bb673;
    color: #fff;
}

    .btn-success:hover {
        background: #249a62;
    }

.btn-secondary {
    background: #eef3fb;
    color: #3566a8;
}

    .btn-secondary:hover {
        background: #dde9f8;
    }

    .btn-secondary:disabled, .btn-primary:disabled, .btn-success:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

/* OTP boxes */
.otp-wrap {
    background: #fbfcff;
    border: 1px dashed #dbe6f7;
    padding: 14px;
    border-radius: 12px;
}

.hint {
    font-size: 13px;
    color: #6b7c8a;
    margin-bottom: 10px;
    display: block;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.otp-input {
    width: 46px;
    height: 46px;
    border: 1px solid #d7dfeb;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    outline: none;
    transition: .2s;
}

    .otp-input:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74,144,226,.12);
    }

/* زیر-اکشن‌ها */
.sub-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    font-size: 13px;
}

    .sub-actions a {
        color: #357bd1;
        text-decoration: none;
    }

        .sub-actions a:hover {
            text-decoration: underline;
        }

/* پنل فراموشی */
.forgot-panel {
    margin-top: 16px;
    border-top: 1px solid #edf2fb;
    padding-top: 14px;
}

.forgot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #1f2d3d;
}

    .forgot-head a {
        color: #7b8a97;
        text-decoration: none;
        font-size: 13px;
    }

        .forgot-head a:hover {
            text-decoration: underline;
        }

.message {
    margin-top: 14px;
    text-align: center;
    color: #d9534f;
    font-size: 14px;
}
