.custom-auth-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

.custom-auth-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.custom-auth-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.auth-button, .custom-auth-btn {
    padding: 18px 26px;
    background: #7f1d1d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-button {
    width: 100%;
}

.auth-button:hover, .custom-auth-btn:hover {
    background: #a82b2b;
    color: white;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #7f1d1d;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.auth-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.auth-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.logout-link {
    display: inline-block;
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.logout-link:hover {
    background: #c82333;
    color: #fff;
}

/* Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.auth-modal.active {
    display: block;
}

.auth-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s;
}

.auth-modal-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s;
}


.auth-modal-close:hover,
.auth-modal-close:focus {
    color: #000;
}

.auth-modal .custom-auth-container {
    margin: 0;
    padding: 20px;
}

.auth-modal .custom-auth-form {
    box-shadow: none;
}
/* Make modal footer text & links visible on white background */

/* Make footer/login/register links inside modal clearly visible */
.auth-modal .custom-auth-form p {
    color: #222 !important;
    text-align: center;
}

.auth-modal .custom-auth-form p a {
    color: #7f1d1d !important;   /* your theme red */
    font-weight: 600;
    text-decoration: none;
}

.auth-modal .custom-auth-form p a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .auth-modal-content {
        width: 95%;
        margin: 10% auto;
    }
}