﻿/* --- LOGIN MODAL STYLES --- */

/* The Modal (background) - darkens the screen */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity - dark overlay */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 30px 40px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 400px; /* Max size for better look */
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Numeric Code Input Styling */
.code-input-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.code-box {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    -moz-appearance: textfield; /* Hide arrows in Firefox */
}

    /* Hide arrows in Chrome/Safari/Edge */
    .code-box::-webkit-outer-spin-button,
    .code-box::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.modal-btn {
    width: 100%;
    padding: 12px;
}

.register-link-container {
    margin-top: 20px;
    font-size: 1rem;
    color: #666;
}

.register-link {
    color: #007bff; /* Use your primary button color */
    text-decoration: none;
    font-weight: bold;
}

    .register-link:hover {
        text-decoration: underline;
    }


/* --- NEW: Form Input Styling for Modals --- */
.modal-content .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.modal-content label {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-purple); /* Using a different color for modal labels */
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    background: rgba(124, 58, 237, 0.05); /* Light purple tint */
    border: 1px solid var(--border-color);
    color: #333; /* Darker text for white modal background */
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-content input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
    background: #fcfcff;
    outline: none;
}
/* Ensure the button matches the cyber aesthetic in the modal */
.modal-btn {
    width: 100%;
    margin-top: 10px;
}