﻿@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../../Fonts/IRANSans.eot'), url('../../Fonts/IRANSans.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../../Fonts/IRANSans.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans-bold;
    font-style: normal;
    font-weight: bold;
    src: url('../../Fonts/IRANSans_Bold.eot'), url('../../Fonts/IRANSans_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../../Fonts/IRANSans_Bold.ttf') format('truetype');
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --soft-blue: #eff6ff;
    --dark: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: IRANSans, Tahoma, Arial, sans-serif;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .18), transparent 35%), radial-gradient(circle at bottom left, rgba(14, 165, 233, .16), transparent 35%), linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    color: var(--dark);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-shell {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .85);
    border-radius: 28px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 24px 80px rgba(15, 23, 42, .14);
    backdrop-filter: blur(18px);
}

.login-brand {
    position: relative;
    padding: 56px;
    color: #fff;
    background: linear-gradient(145deg, rgba(37, 235, 148, .96), rgba(14, 116, 144, .94)), radial-gradient(circle at 20% 20%, rgba(255,255,255,.3), transparent 25%);
    overflow: hidden;
}

    .login-brand::before,
    .login-brand::after {
        content: "";
        position: absolute;
        border-radius: 999px;
        background: rgba(255, 255, 255, .14);
    }

    .login-brand::before {
        width: 240px;
        height: 240px;
        top: -80px;
        left: -80px;
    }

    .login-brand::after {
        width: 180px;
        height: 180px;
        bottom: -50px;
        right: -40px;
    }

.brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 60px;
}

.logo-box {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}

    .logo-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.brand-title {
    margin: 0 0 14px;
    font-family: IRANSans-bold;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.75;
    letter-spacing: -1px;
    text-align: center;
}

.brand-subtitle {
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 17px;
    line-height: 2.1;
}

.brand-points {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.brand-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.92);
    font-size: 14px;
}

    .brand-point span:first-child {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(255,255,255,.16);
    }

.login-panel {
    padding: 54px 52px;
    background: rgba(255,255,255,.94);
}

.mobile-logo {
    display: none;
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

    .mobile-logo img {
        max-width: 100%;
        max-height: 100%;
    }

.login-heading {
    margin-bottom: 30px;
    text-align: right;
}

    .login-heading .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 12px;
        margin-bottom: 14px;
        border-radius: 999px;
        color: var(--primary-dark);
        background: var(--soft-blue);
        font-size: 13px;
        font-weight: 700;
    }

    .login-heading h1 {
        margin: 0 0 10px;
        font-size: 27px;
        font-weight: 850;
        letter-spacing: -1px;
    }

    .login-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.9;
    }

.form-label {
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.form-control {
    min-height: 50px;
    border-radius: 16px;
    border-color: var(--border);
    padding: 12px 15px;
    font-size: 14px;
    box-shadow: none !important;
}

    .form-control:focus {
        border-color: rgba(37, 99, 235, .65);
        box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .12) !important;
    }

.captcha-card {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.captcha-question {
    min-height: 50px;
    min-width: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(37, 99, 235, .45);
    background: linear-gradient(135deg, rgba(239,246,255,.95), rgba(255,255,255,.9));
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 900;
    direction: ltr;
    user-select: none;
}

.captcha-refresh {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border: 0;
    border-radius: 16px;
    background: #f1f5f9;
    color: #334155;
    font-size: 20px;
    transition: .2s ease;
}

    .captcha-refresh:hover {
        background: #e2e8f0;
        transform: rotate(-12deg);
    }

.btn-login {
    min-height: 52px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, #25ebd7, #0e7490);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 32px rgba(37, 99, 235, .24);
    transition: .3s ease-in-out;
}

    .btn-login:hover {
        transition: .3s ease-in-out;
        transform: translateY(-1px);
        box-shadow: 0 20px 38px rgba(37, 99, 235, .30);
        background: linear-gradient(135deg, #1cb1a2, #0f766e);
    }

.alert-modern {
    border-radius: 16px;
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 13px;
    line-height: 1.8;
}

.login-links {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

    .login-links a {
        color: #334155;
        text-decoration: none;
        font-size: 13px;
        line-height: 1.8;
        transition: .2s ease;
    }

        .login-links a:hover {
            color: var(--primary-dark);
        }

.footer-credit {
    margin-top: 28px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
}

    .footer-credit a {
        color: #475569;
        text-decoration: none;
        font-weight: 700;
    }

.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.modal-header {
    border-bottom-color: #f1f5f9;
}

.modal-footer {
    border-top-color: #f1f5f9;
}

.modal-title {
    font-weight: 850;
}

@media (max-width: 991.98px) {
    .login-shell {
        max-width: 560px;
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .mobile-logo {
        display: flex;
    }

    .login-panel {
        padding: 34px 24px;
    }

    .login-heading {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 12px;
    }

    .login-shell {
        border-radius: 22px;
    }

    .captcha-card {
        display: grid;
        grid-template-columns: 1fr 50px;
    }

    .captcha-question {
        min-width: 0;
    }
}
