﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

    .container:hover {
        transform: translateY(-5px);
    }

.image-section {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
}

    .image-section h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .image-section p {
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: justify;
    }

.login-section {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

    .login-header h1 {
        color: #1a2a6c;
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #666;
    }

.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

    .tab.active {
        color: #1a2a6c;
        border-bottom: 3px solid #1a2a6c;
    }

    .tab:hover:not(.active) {
        color: #1a2a6c;
        background-color: rgba(26, 42, 108, 0.05);
    }

.form-container {
    display: none;
}

    .form-container.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

    .input-group i {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        color: #777;
        transition: color 0.3s ease;
    }

    .input-group input {
        width: 100%;
        padding: 15px 45px 15px 15px;
        border: 2px solid #ddd;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        outline: none;
    }

        .input-group input:focus {
            border-color: #1a2a6c;
            box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
        }

            .input-group input:focus + i {
                color: #1a2a6c;
            }

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember {
    display: flex;
    align-items: center;
}

    .remember input {
        margin-left: 8px;
    }

.forgot-password {
    color: #1a2a6c;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #b21f1f;
        text-decoration: underline;
    }

.login-btn {
    background: linear-gradient(to right, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

    .login-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
    color: #777;
}

    .divider::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 45%;
        height: 1px;
        background: #ddd;
    }

    .divider::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 45%;
        height: 1px;
        background: #ddd;
    }

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    color: #555;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

    .social-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.facebook:hover {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.google:hover {
    background: #db4437;
    color: white;
    border-color: #db4437;
}

.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.signup-link {
    text-align: center;
    margin-top: 30px;
    color: #666;
}

    .signup-link a {
        color: #1a2a6c;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .signup-link a:hover {
            color: #b21f1f;
            text-decoration: underline;
        }

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .image-section {
        padding: 30px;
    }

        .image-section h2 {
            font-size: 2rem;
        }

    .login-section {
        padding: 40px 30px;
    }
}
/* استایل‌های مربوط به OTP */
.send-otp-btn {
    background: linear-gradient(to right, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

    .send-otp-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .send-otp-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.otp-section {
    display: none;
}

    .otp-section.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

.otp-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .otp-input:focus {
        border-color: #1a2a6c;
        box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
        outline: none;
    }

.otp-timer {
    text-align: center;
    margin-bottom: 20px;
    color: #b21f1f;
    font-weight: 600;
}

.resend-otp {
    text-align: center;
    margin-top: 15px;
}

    .resend-otp a {
        color: #1a2a6c;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .resend-otp a:hover {
            color: #b21f1f;
            text-decoration: underline;
        }

        .resend-otp a:disabled {
            color: #ccc;
            cursor: not-allowed;
            text-decoration: none;
        }

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .image-section {
        padding: 30px;
    }

        .image-section h2 {
            font-size: 2rem;
        }

    .login-section {
        padding: 40px 30px;
    }

    /* استایل‌های ریسپانسیو برای OTP */
    .otp-inputs {
        gap: 8px;
    }

    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .send-otp-btn,
    .login-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .otp-inputs {
        gap: 5px;
    }

    .otp-input {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        margin-bottom: 5px;
    }
}

/* استایل Toast */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

.toast {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.3s ease;
}

.toast-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-right: 5px solid #388E3C;
}

.toast-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-right: 5px solid #c62828;
}

.toast-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border-right: 5px solid #ef6c00;
}

.toast-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border-right: 5px solid #1565C0;
}

.toast-message {
    flex: 1;
    margin-left: 15px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

    .toast-close:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast.hiding {
    animation: slideUp 0.3s ease forwards;
}