/* ============================================================================
   FILE: C:\xampp\htdocs\hesabdari_clean\student\css\2_auth.css
   TITLE: ظاهر مشترک فرم‌های عمومی ورود و ثبت‌نام نسخه 2
   VERSION: 1.0.0
   ============================================================================ */

:root {
    --auth-bg: #f5f7fb;
    --auth-card: #ffffff;
    --auth-text: #182230;
    --auth-muted: #667085;
    --auth-border: #e4e8ef;
    --auth-primary: #1d3557;
    --auth-primary-hover: #142943;
    --auth-success-bg: #ecfdf3;
    --auth-success-text: #137a44;
    --auth-warning-bg: #fffaeb;
    --auth-warning-text: #9a6700;
    --auth-danger-bg: #fff1f2;
    --auth-danger-text: #b42318;
    --auth-info-bg: #eff8ff;
    --auth-info-text: #175cd3;
}

.auth-page {
    min-height: calc(100vh - 80px);
    padding: 34px 16px 60px;
    background: linear-gradient(180deg, #f8faff 0%, var(--auth-bg) 100%);
    direction: rtl;
}

.auth-wrap {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.auth-grid {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.auth-brand {
    padding: 42px;
    background: linear-gradient(155deg, #172b4d 0%, #254d77 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 26px;
    margin-bottom: 20px;
}

.auth-brand h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.45;
}

.auth-brand p {
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 2;
    font-size: 13px;
}

.auth-points {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.auth-point {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    line-height: 1.9;
}

.auth-point span:first-child {
    opacity: .9;
}

.auth-card {
    padding: 38px;
}

.auth-title {
    margin-bottom: 24px;
}

.auth-title h2 {
    margin: 0 0 7px;
    color: var(--auth-text);
    font-size: 25px;
}

.auth-title p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.9;
    font-size: 12px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field label {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    font-size: 15px;
    pointer-events: none;
}

.auth-input,
.auth-select,
.auth-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 48px;
    border: 1px solid #d8dee8;
    border-radius: 14px;
    background: #fff;
    color: var(--auth-text);
    padding: 0 42px 0 14px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-select {
    padding-right: 14px;
}

.auth-textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
}

.auth-input:focus,
.auth-select:focus,
.auth-textarea:focus {
    border-color: #7b8da7;
    box-shadow: 0 0 0 4px rgba(37,77,119,.08);
}

.auth-hint {
    color: #8a94a6;
    font-size: 10px;
    line-height: 1.8;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #475467;
    font-size: 11px;
    line-height: 1.9;
}

.auth-check input {
    margin-top: 4px;
    accent-color: var(--auth-primary);
}

.auth-button {
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: var(--auth-primary);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, transform .12s ease;
}

.auth-button:hover {
    background: var(--auth-primary-hover);
}

.auth-button:active {
    transform: translateY(1px);
}

.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    font-size: 11px;
}

.auth-links a {
    color: #24517d;
    text-decoration: none;
    font-weight: 700;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-message {
    border-radius: 14px;
    padding: 13px 15px;
    margin-bottom: 17px;
    line-height: 1.95;
    font-size: 11px;
}

.auth-message strong {
    display: block;
    margin-bottom: 4px;
}

.auth-message.info { background: var(--auth-info-bg); color: var(--auth-info-text); }
.auth-message.success { background: var(--auth-success-bg); color: var(--auth-success-text); }
.auth-message.warning { background: var(--auth-warning-bg); color: var(--auth-warning-text); }
.auth-message.error { background: var(--auth-danger-bg); color: var(--auth-danger-text); }

.auth-mini-card {
    margin-top: 18px;
    padding: 15px;
    background: #fafbfc;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
}

.auth-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
    border-bottom: 1px dashed #e6eaf0;
    font-size: 11px;
}

.auth-mini-row:last-child {
    border-bottom: 0;
}

.auth-mini-row span:first-child {
    color: #667085;
}

.auth-mini-row span:last-child {
    color: #1d2939;
    font-weight: 700;
}

.auth-otp {
    direction: ltr;
    text-align: center;
    letter-spacing: 12px;
    padding-left: 0;
    padding-right: 12px;
    font-size: 22px;
    font-weight: 800;
}

.auth-status {
    text-align: center;
    padding: 12px;
    color: #667085;
    font-size: 10px;
    line-height: 1.8;
}

@media (max-width: 820px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 28px 26px;
    }

    .auth-brand h1 {
        font-size: 24px;
    }

    .auth-points {
        margin-top: 20px;
    }

    .auth-card {
        padding: 28px 22px;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 18px 10px 40px;
    }

    .auth-grid {
        border-radius: 20px;
    }

    .auth-brand {
        padding: 24px 20px;
    }

    .auth-card {
        padding: 24px 17px;
    }

    .auth-title h2 {
        font-size: 22px;
    }
}
