﻿body, html {
    margin: 0;
    padding: 0;
    font-family: Tahoma, sans-serif;
    direction: rtl;
    background-color: #f4f8fc;
    height: 100%;
    overflow-x: hidden;
}

/* ==== مرکز فرم در صفحه ==== */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
}

/* ==== جعبه لاگین اصلی ==== */
.login-box {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(18, 76, 154, 0.12);
    height: 500px;
}

/* ==== نوار آبی سمت راست ==== */
.header-side {
    background-color: #bae6ff;
    width: 180px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .header-side .logo {
        max-width: 80px;
        margin-bottom: 10px;
    }

    .header-side .header-text {
        font-weight: bold;
        font-size: 15px;
        line-height: 1.6;
        color: #0f3d75;
    }

.text-success {
    font-weight: bold;
    margin-bottom: 5%;
    color: #1456a0 !important;
}

/* ==== بخش فرم در سمت چپ ==== */
.form-side {
    flex: 1;
    padding: 24px;
}

.form-title {
    font-size: 18px;
    font-weight: bold;
    color: #1456a0;
    margin-bottom: 24px;
    text-align: center;
}

.form-control {
    width: 100%;
    height: 45px !important;
    font-size: 15px;
    margin-bottom: 16px;
    border: 1px solid #b8cbe0;
    border-radius: 15px !important;
    text-align: center;
    background-color: #ffffff;
    color: #1f2d3d;
}

    .form-control:focus {
        outline: none;
        border-color: #1456a0;
        box-shadow: 0 0 0 3px rgba(20, 86, 160, 0.15);
    }

.captcha {
    text-align: center;
}

.captcha-input,
input[name="CaptchaInputText"] {
    display: block !important;
    margin: 0 auto 0 auto !important;
    width: 100% !important;
    height: 45px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    border: 2px solid #d4dfec !important;
    border-radius: 15px !important;
    background: white !important;
    color: #123a6d !important;
}

.captcha-container img {
    display: block !important;
    margin: 0 auto 16px auto !important;
    max-width: 100%;
    height: 68px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(20, 86, 160, 0.16);
}

.captcha img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
}

/* ==== دکمه ورود ==== */
.btn {
    width: 100%;
    padding: 12px;
    background-color: #1456a0;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 15px !important;
    height: 45px !important;
    cursor: pointer;
    margin-top: 6%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn:hover {
        background-color: #0f4785;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(20, 86, 160, 0.35);
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

/* ==== موبایل: هدر بره بالا ==== */
@media (max-width: 480px) {
    .login-box {
        flex-direction: column;
        height: 100%;
    }

    .header-side {
        width: 100%;
        flex-direction: row;
        gap: 12px;
        padding: 16px;
    }

        .header-side .logo {
            max-width: 50px;
        }

        .header-side .header-text {
            font-size: 15px;
            text-align: right;
        }

    .form-side {
        padding: 20px;
    }
}
