/* Login Page Styles */

.login-container {
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Login Card */
.login-card {
    background: linear-gradient(135deg, #ffffff 0%, #FFF9F0 100%);
    border: 2px solid rgba(160, 82, 45, 0.15);
    border-radius: 32px;
    padding: 60px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(160, 82, 45, 0.1);
    transition: all 0.4s ease;
}

.login-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(160, 82, 45, 0.15);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 48px;
}

.login-icon {
    font-size: 64px;
    margin-bottom: 24px;
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.login-header h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #3E2723;
    margin-bottom: 12px;
}

body.rtl .login-header h1 {
    font-size: 48px;
}

.login-header p {
    font-size: 16px;
    color: rgba(62, 39, 35, 0.7);
    font-weight: 500;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #5D4037;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #3E2723;
    border: 2px solid rgba(160, 82, 45, 0.2);
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #A0522D;
    box-shadow: 0 0 0 4px rgba(160, 82, 45, 0.1);
}

.form-group input::placeholder {
    color: rgba(62, 39, 35, 0.3);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #5D4037;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #A0522D;
}

.forgot-link {
    font-size: 14px;
    font-weight: 600;
    color: #A0522D;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #CD853F;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    padding: 18px 32px;
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 24px rgba(160, 82, 45, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(160, 82, 45, 0.4);
    background: linear-gradient(135deg, #CD853F 0%, #A0522D 100%);
}

.login-btn:active {
    transform: translateY(0);
}

/* Divider */
.login-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(160, 82, 45, 0.2);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(62, 39, 35, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #FFF9F0 100%);
    padding: 0 20px;
}

/* Login Footer */
.login-footer {
    text-align: center;
}

.login-footer p {
    font-size: 15px;
    color: #5D4037;
    font-weight: 600;
    margin-bottom: 12px;
}

.signup-link {
    font-size: 16px;
    font-weight: 700;
    color: #A0522D;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.signup-link:hover {
    color: #CD853F;
    transform: translateY(-2px);
}

/* Benefits Section */
.login-benefits {
    width: 100%;
    max-width: 1200px;
}

.login-benefits h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #3E2723;
    margin-bottom: 48px;
}

body.rtl .login-benefits h2 {
    font-size: 56px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-item {
    background: linear-gradient(135deg, #ffffff 0%, #FFF9F0 100%);
    border: 1px solid rgba(160, 82, 45, 0.15);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    gap: 20px;
    transition: all 0.4s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(160, 82, 45, 0.15);
    border-color: rgba(160, 82, 45, 0.3);
}

.benefit-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #3E2723;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.benefit-content p {
    font-size: 15px;
    color: rgba(62, 39, 35, 0.7);
    font-weight: 500;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 40px 20px;
        gap: 40px;
    }

    .login-card {
        padding: 40px 32px;
    }

    .login-header h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .login-header p {
        font-size: 14px;
    }

    .login-benefits h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-item {
        padding: 24px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .login-icon {
        font-size: 48px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* RTL Support */
body.rtl .form-options {
    flex-direction: row-reverse;
}

body.rtl .checkbox-container {
    flex-direction: row-reverse;
}

body.rtl .login-btn {
    flex-direction: row-reverse;
}
