﻿/* ============================================================
   register-split.css - استایل دو تکه و حرفه‌ای صفحه ثبت نام
   ============================================================ */

.register-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 40px 20px;
    direction: rtl;
}

.split-box {
    display: flex;
    /* 🔴 جادوی قرینه کردن: جای فرم (چپ) و توضیحات (راست) عوض می‌شود */
    flex-direction: row-reverse;
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ========== سمت چپ: فرم ثبت‌نام ========== */
.form-side {
    flex: 1.1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.form-content {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-title {
    color: #C2185B;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 15px;
}

    .form-row .input-group {
        flex: 1;
    }

.form-label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #C2185B;
    opacity: 0.8;
    font-size: 16px;
    z-index: 2;
    transition: 0.3s;
}

/* آیکون چشم (مشاهده رمز) - قرارگیری در سمت چپ */
.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    z-index: 5;
    font-size: 16px;
    transition: 0.3s;
}

    .password-toggle:hover {
        color: #C2185B;
    }

.split-input {
    width: 100%;
    padding: 14px 45px 14px 45px; /* فضا برای آیکون راست و چشم در چپ */
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fcfcfc;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

    .split-input:focus {
        border-color: #C2185B;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
    }

/* استایل دراپ‌داون‌های تاریخ تولد */
.date-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.split-select {
    flex: 1;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fcfcfc;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C2185B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-position: left 10px center;
    background-repeat: no-repeat;
    text-align: center;
    color: #444;
}

    .split-select:focus {
        border-color: #C2185B;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(194, 24, 91, 0.1);
    }

/* ========== قدرت رمز عبور ========== */
.password-meter-container {
    margin-top: -10px;
    margin-bottom: 18px;
    padding: 0 5px;
}

.meter-bars {
    display: flex;
    gap: 5px;
    height: 4px;
    margin-bottom: 10px;
}

.meter-bar {
    flex: 1;
    background-color: #e0e0e0;
    border-radius: 5px;
    transition: background-color 0.4s ease;
}

.meter-text {
    font-size: 11px;
    font-weight: bold;
    text-align: left;
    color: #777;
    margin-bottom: 8px;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

    .password-requirements li {
        font-size: 11px;
        color: #888;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.3s;
    }

.req-valid {
    color: #4CAF50 !important;
}

.req-invalid {
    color: #f44336 !important;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #C2185B, #E91E63);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
    margin-top: 5px;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(194, 24, 91, 0.3);
    }

.login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

    .login-prompt a {
        color: #C2185B;
        font-weight: bold;
        text-decoration: none;
    }

.error-message {
    display: block;
    background: #ffebee;
    color: #c62828;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #ffcdd2;
}

.error-text-small {
    color: #f44336;
    font-size: 11px;
    margin-top: 5px;
    display: block;
    font-weight: bold;
}

/* ========== سمت راست: اطلاعات و ویژگی‌ها ========== */
.info-side {
    flex: 0.9;
    background: linear-gradient(135deg, #C2185B, #8E0E3E);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.info-content {
    max-width: 400px;
}

.info-logo {
    width: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.info-side h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-side p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 20px;
    text-align: justify;
}

.info-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 20px 0;
    width: 100%;
}

.info-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

    .info-features li {
        font-size: 13px;
        margin-bottom: 12px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: rgba(255, 255, 255, 0.1);
        padding: 15px;
        border-radius: 12px;
        line-height: 1.6;
    }

        .info-features li i {
            color: #ffeb3b;
            font-size: 20px;
            margin-top: 2px;
        }

        .info-features li span strong {
            color: #fff;
            display: block;
            margin-bottom: 3px;
            font-size: 14px;
        }

/* ========== ریسپانسیو (موبایل و تبلت) ========== */
@media (max-width: 900px) {
    .split-box {
        flex-direction: column;
    }

    .form-side {
        padding: 40px 20px;
        order: 1; /* در موبایل فرم بالا می‌ماند */
    }

    .info-side {
        padding: 40px 20px;
        order: 2; /* توضیحات به پایین می‌رود */
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
