﻿@font-face {
    font-family: "vazir";
    src: url("/lib/content/fonts/Vazir-FD.ttf");
}

@font-face {
    font-family: "yekan";
    src: url("/lib/content/fonts/IRANYekanRegular.woff");
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: yekan;
}

:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6a75ff;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-text: #777;
    --bg-light: #f8f9fa;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

    .btn:hover {
        background-color: var(--secondary-color);
        transform: translateY(-3px);
    }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline:hover {
        background-color: var(--primary-color);
        color: var(--white);
    }

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        font-weight: 500;
        transition: var(--transition);
    }

        .nav-links a:hover {
            color: var(--primary-color);
        }

.nav-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Auth Section */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 40px 0;
}

.auth-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-header h1 {
        font-size: 2rem;
        margin-bottom: 10px;
        color: var(--text-color);
    }

    .auth-header p {
        color: var(--light-text);
    }

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
    }

.input-with-button {
    display: flex;
    gap: 10px;
}

    .input-with-button .form-control {
        flex: 1;
    }

.send-code-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

    .send-code-btn:hover {
        background-color: var(--secondary-color);
    }

    .send-code-btn:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.countdown {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

    .auth-footer a {
        color: var(--primary-color);
        font-weight: 500;
        transition: var(--transition);
    }

        .auth-footer a:hover {
            color: var(--secondary-color);
        }

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #eee;
    }

    .divider span {
        padding: 0 15px;
        color: var(--light-text);
        font-size: 0.9rem;
    }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.modal {
    background-color: var(--white);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 20px;
    text-align: center;
}

    .modal-header h2 {
        font-size: 1.5rem;
        color: var(--text-color);
    }

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    text-align: center;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background-color: var(--primary-color);
    }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--white);
        padding-right: 5px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .auth-container {
        padding: 25px;
    }

    .auth-header h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .input-with-button {
        flex-direction: column;
    }

    .send-code-btn {
        padding: 12px 15px;
    }
}
