/* --- Unified Authentication Modals CSS --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000; /* High z-index to stay above everything */
}

.modal-content {
    background: #1e1e1e;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #444;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    color: #ff8400; /* Accent color */
    font-size: 1.8rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.message {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

.success-message {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: #2ecc71;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #aaa;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #2a2a2a;
    color: #fff;
    box-sizing: border-box;
    outline: none;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #ff8400;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background-color: #ff8400;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: #ffaa44;
}

.modal-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.modal-footer a {
    color: #ff8400;
    text-decoration: none;
    font-weight: bold;
}

.modal-footer a:hover {
    text-decoration: underline;
}
