.login-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.login-modal.active {
    display: block;
}

.login-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.login-modal-dialog {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-modal-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    max-width: 450px;
    width: 100%;
    padding: 2.25rem;
    position: relative;
}

.login-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1.35rem;
    color: #3E1725;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-modal-header h2 {
    color: #3E1725;
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
}

.login-modal-header p {
    color: #666;
    font-size: 1rem;
}

.login-modal .form-group {
    margin-bottom: 1.25rem;
}

.login-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.login-modal .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-modal .form-group input:focus {
    outline: none;
    border-color: #3E1725;
    box-shadow: 0 0 0 3px rgba(61, 24, 37, 0.1);
}

.login-modal .form-group input.error {
    border-color: #dc3545;
}

.login-modal .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.login-modal .error-message.show {
    display: block;
}

.login-modal .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.login-modal .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-modal .checkbox-group input[type="checkbox"] {
    width: auto;
}

.login-modal .checkbox-group label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.login-modal .forgot-password {
    font-size: 0.9rem;
    color: #3E1725;
    text-decoration: none;
}

.login-modal .forgot-password:hover {
    text-decoration: underline;
}

.login-modal .btn-submit {
    width: 100%;
    padding: 1rem;
    background: #3E1725;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-modal .btn-submit:hover {
    background: #5D2D3F;
    transform: translateY(-1px);
}

.login-modal .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.login-modal .auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e0e0e0;
}

.login-modal .auth-footer p {
    color: #666;
    font-size: 0.95rem;
}

.login-modal .auth-footer a {
    color: #3E1725;
    text-decoration: none;
    font-weight: 600;
}

.login-modal .auth-footer a:hover {
    text-decoration: underline;
}

.login-modal .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    display: none;
}

.login-modal .alert.show {
    display: block;
}

.login-modal .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-modal .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .login-modal-card {
        padding: 1.8rem 1.35rem;
    }

    .login-modal .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
