﻿:root {
    /* brand */
    --primary-red: #e30613;

    /* ui reds */
    --secondary-red: #d90429;
    --accent-red: #ef233c;
    --light-red: #fff1f2;

    /* background reds */
    --red-soft-bg: #8b1e2d;
    --red-dark-bg: #5a0f18;

    /* text */
    --text-dark: #0a0a0a;
    --text-gray: #6b6b6b;
    --text-light: #ffffff;

    /* backgrounds */
    --bg-light: #f5f5f5;
    --bg-soft: #fafafa;
    --bg-white: #ffffff;

    /* borders */
    --border-light: #e2e8f0;
    --border-gray: #cbd5e0;

    /* shadow */
    --shadow-dark: rgba(0,0,0,0.15);
}

/* ================= RESET ================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn','Segoe UI',Tahoma,sans-serif;
    background: linear-gradient(135deg,var(--bg-light),var(--bg-soft));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--text-dark);
}



/* ================= FOOTER ================= */

.modern-footer {
    background: linear-gradient(135deg,var(--red-dark-bg),var(--red-soft-bg));
    color: var(--text-light);
    padding: 40px 25px 25px;
    text-align: center;
    font-family: "IRANSans",sans-serif;
    position: relative;
    overflow: hidden;
}

.footer-logo img {
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

    .footer-menu li a {
        color: var(--text-light);
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        letter-spacing: .3px;
        position: relative;
        transition: .3s;
    }

        .footer-menu li a::after {
            content: "";
            position: absolute;
            width: 0;
            height: 2px;
            background: var(--primary-red);
            left: 50%;
            bottom: -6px;
            transform: translateX(-50%);
            transition: .3s;
        }

        .footer-menu li a:hover {
            color: var(--light-red);
            transform: translateY(-2px);
        }

            .footer-menu li a:hover::after {
                width: 100%;
            }

.footer-social {
    margin: 20px 0;
}

    .footer-social a {
        color: var(--text-light);
        margin: 0 12px;
        font-size: 22px;
        transition: .3s;
        display: inline-block;
    }

        .footer-social a:hover {
            color: var(--primary-red);
            transform: scale(1.2);
        }

.footer-divider {
    height: 1px;
    width: 80px;
    margin: 20px auto;
    background: linear-gradient(to right,transparent,var(--primary-red),transparent);
}

.footer-text {
    font-size: 14px;
    color: var(--light-red);
    margin: 15px auto 20px;
    max-width: 850px;
    line-height: 1.8;
    letter-spacing: .2px;
}

.trust-seal img {
    margin: 15px auto;
    display: block;
}

.footer-copy {
    font-size: 13px;
    color: var(--light-red);
    margin-top: 20px;
    line-height: 1.7;
}

    .footer-copy a {
        color: #f89d36;
        text-decoration: none;
        font-weight: 600;
    }

        .footer-copy a:hover {
            color: #ffc107;
        }

/* Responsive */

@media (max-width:768px) {

    .modern-footer {
        padding: 30px 15px 20px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .footer-text {
        font-size: 13px;
        padding: 0 10px;
        line-height: 1.7;
    }

    .footer-social a {
        margin: 0 8px;
        font-size: 20px;
    }
}

@media (max-width:576px) {

    .modern-footer {
        padding: 25px 10px 15px;
    }

    .footer-logo img {
        height: 70px;
        margin-bottom: 10px;
    }
}

/* ================= LOGIN LAYOUT ================= */

.fullscreen-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 15px;
}

.login-card {
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: 0 10px 25px var(--shadow-dark);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    transition: .3s;
    position: relative;
    z-index: 10;
}

    .login-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0,0,0,.25);
    }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 15px;
}

/* ================= LOGIN HEADER ================= */

.login-header {
    background: linear-gradient(135deg,var(--red-dark-bg),var(--red-soft-bg));
    color: var(--text-light);
    padding: 1.8rem 1.5rem;
    text-align: center;
    position: relative;
}

    .login-header::after {
        content: '';
        position: absolute;
        bottom: -18px;
        left: 0;
        width: 100%;
        height: 35px;
        background: var(--bg-white);
        border-radius: 50% 50% 0 0;
    }

.login-logo {
    max-width: 100px;
    margin-bottom: .8rem;
    transition: .3s;
}

.logo-link:hover .login-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.15));
}

.login-title {
    font-weight: 700;
    margin-bottom: .3rem;
    font-size: 1.4rem;
}

.login-subtitle {
    font-size: .85rem;
    opacity: .9;
}



/* ================= LOGIN BODY ================= */

.login-body {
    padding: 2rem 1.8rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text-dark);
    display: block;
    font-size: .9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}



/* ================= INPUT ================= */

.form-control {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    transition: .3s;
    width: 100%;
    font-size: .95rem;
    background: var(--bg-soft);
    height: 46px;
    color: var(--text-dark);
}

    .form-control::placeholder {
        color: var(--text-gray);
        font-size: .9rem;
    }

    .form-control:focus {
        border-color: var(--accent-red);
        box-shadow: 0 4px 10px rgba(239,35,60,.2);
        background: var(--bg-white);
        outline: none;
    }

    .form-control:hover {
        border-color: var(--secondary-red);
    }



/* ================= ICONS ================= */

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-red);
    font-size: 1.1rem;
    z-index: 5;
    transition: color 0.3s ease;
}

.input-with-icon {
    padding-left: 42px !important;
}

.password-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary-red);
    font-size: 1.1rem;
    z-index: 10;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: var(--accent-red);
    }



/* ================= BUTTON ================= */

.btn-login {
    background: linear-gradient(135deg,var(--red-dark-bg),var(--red-soft-bg));
    color: var(--text-light);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
    height: 46px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(217,4,41,.3);
        color: var(--text-light); /* fix */
    }



/* ================= CHECKBOX ================= */

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-left: .4rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    background: var(--bg-white);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

    .form-check-input:checked {
        background: var(--accent-red);
        border-color: var(--accent-red);
    }

        .form-check-input:checked::after {
            content: "✓";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 10px;
            font-weight: bold;
        }

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

/* Custom Checkbox Red Palette */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-white);
    position: relative;
    cursor: pointer;
    margin-left: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

    .custom-checkbox:checked {
        background-color: var(--accent-red);
        border-color: var(--accent-red);
    }

        .custom-checkbox:checked::after {
            content: "✓";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--text-light);
            font-size: 12px;
            font-weight: bold;
        }

    .custom-checkbox:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.2); /* استفاده از شفافیت رنگ accent-red */
    }


/* ================= LINKS ================= */

.forgot-password {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

    .forgot-password:hover {
        color: var(--accent-red);
        text-decoration: underline;
    }

.register-link {
    color: var(--secondary-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

    .register-link:hover {
        color: var(--accent-red);
        text-decoration: underline;
    }



/* ================= ALERT ================= */

.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 1.2rem;
    font-size: .9rem;
}

.alert-info {
    background: var(--light-red);
    color: var(--secondary-red);
}

.alert-danger {
    background: #fde2e2;
    color: #7f1d1d;
}



/* ================= OTP ================= */

.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    color: var(--primary-red);
}

    .otp-input:focus {
        outline: none;
        border-color: var(--accent-red);
        box-shadow: 0 0 0 3px rgba(239,35,60,.25);
    }

.countdown-text {
    color: var(--primary-red);
    font-weight: 600;
}

.resend-btn {
    color: var(--accent-red);
    font-weight: 600;
    text-decoration: none;
}

    .resend-btn:hover {
        color: var(--primary-red);
    }



/* ================= BACKGROUND SHAPES ================= */

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: .15;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg,var(--secondary-red),var(--accent-red));
    top: -120px;
    right: -120px;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg,var(--accent-red),var(--primary-red));
    bottom: -80px;
    left: -80px;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg,var(--secondary-red),var(--primary-red));
    top: 50%;
    left: 10%;
}



/* ================= MOBILE ================= */

@media (max-width:576px) {

    .fullscreen-login {
        padding: 10px;
    }

    .login-header {
        padding: 1.5rem 1.2rem;
    }

    .login-body {
        padding: 1.6rem 1.2rem;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .login-logo {
        max-width: 85px;
    }

    .otp-input {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .btn-login {
        height: 42px;
        font-size: .95rem;
    }
}



/* ================= EXTRA SMALL ================= */

@media (max-width:380px) {

    .login-header {
        padding: 1.2rem 1rem;
    }

    .login-body {
        padding: 1.4rem 1rem;
    }

    .form-control {
        height: 40px;
        font-size: .85rem;
    }

    .otp-input {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .btn-login {
        height: 40px;
        font-size: .9rem;
    }

    .login-logo {
        max-width: 75px;
    }
}
