/* Login Modal Styles - Shared across all public pages */
/* Version: 1.0.0 */

/* Modal Backdrop - Full screen overlay with blur */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal Content Box */
.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 450px;
    position: relative;
    padding: 40px;
    animation: modalSlideIn 0.3s ease-out;
}

/* Modal Slide In Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c9a86a;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.modal-header p {
    color: #888;
    font-size: 14px;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #c9a86a;
}

/* Modal Form Groups - Scoped to prevent conflicts with page forms */
.modal-backdrop .form-group {
    margin-bottom: 20px;
}

.modal-backdrop .form-group label {
    display: block;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.modal-backdrop .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 2px;
    color: #c8c8c8;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-backdrop .form-group input:focus {
    outline: none;
    border-color: #c9a86a;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.1);
}

.modal-backdrop .form-group input::placeholder {
    color: #555;
}

/* Modal Form Footer */
.modal-backdrop .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.modal-backdrop .form-footer a {
    color: #c9a86a;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.modal-backdrop .form-footer a:hover {
    color: #d4b87a;
    text-decoration: underline;
}

/* Modal Divider */
.modal-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(139, 0, 0, 0.2);
}

.modal-divider span {
    background: #0d0d0d;
    padding: 0 15px;
    color: #666;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #8b0000 0%, #660000 100%);
    color: white;
    border: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #a00000 0%, #750000 100%);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
    transform: translateY(-1px);
}

/* Register Alternate Button */
.btn-register-alt {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #c9a86a;
    border: 1px solid rgba(201, 168, 106, 0.3);
    border-radius: 2px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-register-alt:hover {
    background: rgba(201, 168, 106, 0.1);
    border-color: #c9a86a;
}

/* Alpine.js Cloak - Prevents flash of unstyled content */
[x-cloak] {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 25px;
        max-width: 100%;
    }

    .modal-header h2 {
        font-size: 24px;
    }
}
