﻿/************* Footer ***********/
.modern-footer {
    background: linear-gradient(135deg, #1e4026 0%, #2d5a38 100%);
    color: #eaeaea;
    padding: 30px 20px 20px;
    text-align: center;
    font-family: "IRANSans", sans-serif;
    position: relative;
    overflow: hidden;
}

/* Logo */
.footer-logo img {
    height: 75px;
    margin: 0 auto 15px auto;
    display: block;
}

/* Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

    .footer-menu li a {
        color: #f5f5f5;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        position: relative;
        transition: color 0.3s;
    }

        .footer-menu li a::after {
            content: "";
            position: absolute;
            width: 0;
            height: 2px;
            background: #d08b1e;
            left: 50%;
            bottom: -6px;
            transition: all 0.3s;
            transform: translateX(-50%);
        }

        .footer-menu li a:hover {
            color: #ffd27f;
        }

            .footer-menu li a:hover::after {
                width: 100%;
            }

/* Social */
.footer-social {
    margin: 15px 0 20px 0;
}

    .footer-social a {
        color: #f5f5f5;
        margin: 0 10px;
        font-size: 20px;
        transition: color 0.3s, transform 0.3s;
        display: inline-block;
    }

        .footer-social a:hover {
            color: #d08b1e;
            transform: scale(1.2);
        }

/* Divider */
.footer-divider {
    height: 1px;
    width: 70px;
    margin: 15px auto;
    background: linear-gradient(to right, transparent, #d08b1e, transparent);
}

/* Text */
.footer-text {
    font-size: 12px;
    color: #ccc;
    margin: 10px auto 15px auto;
    max-width: 800px;
    line-height: 1.6;
}

/* Enamad */
.trust-seal img {
    height: 55px;
    margin: 10px auto;
    display: block;
}

/* CopyRight */
.footer-copy {
    font-size: 11px;
    color: #aaa;
    margin-top: 15px;
    line-height: 1.6;
}

    .footer-copy a {
        color: #d08b1e;
        text-decoration: none;
        font-weight: 600;
    }

        .footer-copy a:hover {
            color: #ffd27f;
        }

/* Responsive */
@media (max-width: 768px) {
    .modern-footer {
        padding: 25px 15px 15px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }

    .footer-text, .footer-copy {
        font-size: 10px;
        padding: 0 10px;
    }

    .footer-social a {
        margin: 0 8px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .modern-footer {
        padding: 20px 10px 10px;
    }

    .footer-logo img {
        height: 75px;
        margin-bottom: 10px;
    }

    .trust-seal img {
        height: 50px;
    }
}

/************* Layout ***********/

:root {
    --primary-green: #1e4026;
    --secondary-green: #2d5a38;
    --accent-orange: #d08b1e;
    --light-orange: #ffd27f;
    --text-light: #f5f5f5;
    --text-gray: #ccc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.fullscreen-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 15px;
}

.login-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 10;
}

    .login-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    }

.login-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    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: #fff;
        border-radius: 50% 50% 0 0;
        z-index: 1;
    }

.login-logo {
    max-width: 100px;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.logo-link {
    display: inline-block;
    transition: all 0.3s ease;
}

    .logo-link:hover .login-logo {
        transform: scale(1.08);
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    }

    .logo-link:active .login-logo {
        transform: scale(0.92);
    }

.login-title {
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
    position: relative;
    z-index: 2;
}

.login-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.login-body {
    padding: 2rem 1.8rem;
    position: relative;
    z-index: 2;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-green);
    display: block;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}
/********************************************/
/*     .form-control {
                    border-radius: 10px;
                    padding: 11px 14px;
                    border: 2px solid #e2e8f0;
                    transition: all 0.3s ease;
                    width: 100%;
                    font-size: 0.95rem;
                    background-color: #f9fafb;
                    height: 46px;
                }

                    .form-control:focus {
                        border-color: var(--accent-orange);
                        box-shadow: 0 0 0 3px rgba(208, 139, 30, 0.2);
                        background-color: #fff;
                    }

                .form-control:focus + .input-icon {
                    color: var(--accent-orange);
                } */


.form-control {
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 0.95rem;
    background-color: #f9fafb;
    height: 46px;
    color: #333;
    position: relative;
}

    /* تغییر placeholder */
    .form-control::placeholder {
        color: #9ca3af;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }

    .form-control:focus::placeholder {
        opacity: 0.5;
        transform: translateX(3px);
    }

    /* افکت فوکوس */
    .form-control:focus {
        border-color: var(--accent-orange);
        box-shadow: 0 4px 10px rgba(208, 139, 30, 0.15);
        background-color: #fff;
    }

    /* افکت هاور */
    .form-control:hover {
        border-color: var(--secondary-green);
    }

/* برای داشتن افکت subtle Glow */
.input-group .form-control:focus {
    animation: glow 0.25s ease-out forwards;
}

@keyframes glow {
    from {
        box-shadow: 0 0 0 rgba(208, 139, 30, 0);
    }

    to {
        box-shadow: 0 0 12px rgba(208, 139, 30, 0.2);
    }
}

/*******************************************************/

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-green);
    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-green);
    z-index: 10;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: var(--accent-orange);
    }

.btn-login {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    height: 46px;
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .btn-login:hover::before {
        opacity: 1;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(45, 90, 56, 0.3);
    }

.btn-text {
    position: relative;
    z-index: 2;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 15px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-left: 0.4rem;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

    .form-check-input:checked {
        background-color: var(--accent-orange);
        border-color: var(--accent-orange);
    }

        .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(--secondary-green);
    font-weight: 500;
    cursor: pointer;
}

.forgot-password {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

    .forgot-password:hover {
        color: var(--light-orange);
        text-decoration: underline;
    }

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
}

.register-link {
    color: var(--secondary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

    .register-link:hover {
        color: var(--accent-orange);
        text-decoration: underline;
    }

.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 1.2rem;
    border: none;
    font-size: 0.9rem;
}

.alert-info {
    background-color: #e6f4f1;
    color: #0c5460;
}

.alert-danger {
    background-color: #fce8e8;
    color: #721c24;
}

.btn-close {
    padding: 0.6rem;
}

.password-strength {
    height: 4px;
    margin-top: 6px;
    border-radius: 2px;
    background: #e2e8f0;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.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: 0.15;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, var(--primary-green), var(--accent-orange));
    top: -120px;
    right: -120px;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, var(--accent-orange), var(--secondary-green));
    bottom: -80px;
    left: -80px;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-green));
    top: 50%;
    left: 10%;
}

/* استایل‌های مخصوص صفحه تأیید کد */
.mobile-number {
    font-weight: 700;
    color: var(--primary-green);
    direction: ltr;
    display: block;
    margin: 6px 0;
    font-size: 1rem;
}

.btn-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.85rem;
}

    .btn-link:hover {
        color: var(--primary-green);
        gap: 6px;
    }

.otp-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
    gap: 10px;
    direction: ltr;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    color: var(--primary-green);
}

    .otp-input:focus {
        outline: none;
        border-color: var(--accent-orange);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(208, 139, 30, 0.2);
    }

    .otp-input.filled {
        border-color: var(--primary-green);
        background: #fff;
    }

.countdown-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.countdown-text {
    color: var(--primary-green);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.resend-btn {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

    .resend-btn:hover {
        color: var(--primary-green);
        gap: 6px;
    }

    .resend-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* استایل‌های مخصوص صفحه ثبت نام */
.agreement-container {
    margin: 0.8rem 0;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 8px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.4rem;
}

/* استایل جدید برای چک باکس شبیه صفحه ورود */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    margin-left: 0.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

    .custom-checkbox:checked {
        background-color: var(--accent-orange);
        border-color: var(--accent-orange);
    }

        .custom-checkbox:checked::after {
            content: "✓";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

    .custom-checkbox:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(208, 139, 30, 0.25);
    }

.form-check-label {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
    cursor: pointer;
}

.text-danger.small {
    font-size: 0.75rem;
    margin-top: 3px;
    display: block;
}

@media (max-width: 576px) {
    .fullscreen-login {
        padding: 10px;
    }

    .login-card {
        max-width: 100%;
    }

    .login-header {
        padding: 1.5rem 1.2rem;
    }

    .login-body {
        padding: 1.6rem 1.2rem;
    }

    .login-title {
        font-size: 1.2rem;
    }

    .login-subtitle {
        font-size: 0.8rem;
    }

    .input-with-icon {
        padding-left: 38px !important;
    }

    .input-icon, .password-toggle {
        left: 12px;
        font-size: 1rem;
    }

    .login-logo {
        max-width: 85px;
    }

    .logo-link:hover .login-logo {
        transform: scale(1.06);
    }

    .otp-input {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .otp-container {
        gap: 8px;
    }

    .btn-login {
        padding: 10px;
        font-size: 0.95rem;
        height: 42px;
    }

    .alert {
        padding: 10px 14px;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .login-footer {
        margin-top: 1.2rem;
        padding-top: 1.2rem;
    }
}

@media (max-width: 380px) {
    .login-header {
        padding: 1.2rem 1rem;
    }

    .login-body {
        padding: 1.4rem 1rem;
    }

    .form-control {
        padding: 8px 10px;
        font-size: 0.85rem;
        height: 40px;
    }

    .otp-input {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .otp-container {
        gap: 6px;
    }

    .btn-login {
        padding: 8px;
        font-size: 0.9rem;
        height: 40px;
    }

    .login-logo {
        max-width: 75px;
    }
}