/* Authentication Styles for Salt & Prepper */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #4a8f29;
    box-shadow: 0 0 0 3px rgba(74, 143, 41, 0.1);
    outline: none;
}

.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

/* Message Styles */
.form-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.form-message.error {
    background-color: #ffebee;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

.form-message.success {
        background-color: #e8f5e9;
        color: #388e3c;
        border-left: 4px solid #388e3c;
    }
    
    /* Text Utilities */
    .text-center {
        text-align: center;
    }
    
    /* User Menu Dropdown */
    .user-menu {
        position: relative;
        display: inline-block;
        cursor: pointer;
        padding: 8px 15px;
        border-radius: 4px;
        background-color: #f1f8e9;
        color: #558b2f;
    }
    
    .user-menu:hover {
        background-color: #dcedc8;
    }
    
    .user-menu span {
        font-weight: 500;
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        min-width: 180px;
        background-color: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        z-index: 1;
        margin-top: 10px;
    }
    
    .dropdown-content a {
        color: #333;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        transition: background-color 0.2s;
    }
    
    .dropdown-content a:hover {
        background-color: #f5f5f5;
    }
    
    .user-menu:hover .dropdown-content {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Responsive Adjustments */
    @media (max-width: 768px) {
        .modal-content {
            margin: 15% auto;
            width: 95%;
        }
        
        .form-group input {
            padding: 10px 12px;
        }
        
        .btn-block {
            padding: 12px;
        }
    }