﻿
:root {
    --primary: #2563eb;
    --secondary: #64748b;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.login-header {
    padding: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    text-align: center;
}

    .login-header h1 {
        margin: 0;
        font-size: 1.75rem;
        font-weight: 700;
    }

    .login-header p {
        margin: 0.5rem 0 0;
        font-size: 0.95rem;
        opacity: 0.9;
    }

.login-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

    input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin: 0;
}

    .checkbox-label input {
        width: auto;
        margin-left: 0.5rem;
    }

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    }

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e2e8f0;
    }

    .divider span {
        background: white;
        padding: 0 1rem;
        color: #64748b;
        relative: relative;
        font-size: 0.9rem;
    }

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

    .social-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

    .signup-link a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        .signup-link a:hover {
            text-decoration: underline;
        }

.back-link {
    text-align: center;
    margin-bottom: 1rem;
}

    .back-link a {
        color: var(--primary);
        text-decoration: none;
        font-size: 0.9rem;
    }

        .back-link a:hover {
            text-decoration: underline;
        }

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

    .error-message.show {
        display: block;
    }

.form-group input {
    height: 46px;
}

.text-danger {
    color: red
}