/* Auth Modal Overlay Base Context */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.auth-modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Modal Window Core Container */
.auth-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    transform: scale(1);
    transition: transform 0.2s ease-out;
}

/* Close Control Button Styling */
.auth-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.75rem;
    font-weight: 300;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}
.auth-close-btn:hover {
    color: #1e293b;
}

/* Text Element Branding Layout Styles */
.auth-header {
    margin-bottom: 1.75rem;
    text-align: center;
}
.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    margin-bottom: 0.375rem;
}
.auth-header p {
    font-size: 0.815rem;
    color: #64748b;
    line-height: 1.4;
}

/* Tab Segment Toggle Layout Styles */
.auth-toggle-bar {
    display: flex;
    background-color: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.75rem;
    gap: 0.25rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: 1.75rem;
}
.auth-tab-btn {
    flex: 1;
    padding: 0.625rem 0;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-tab-btn.active {
    background-color: #2B6CB0; /* Matches primary branding color header element */
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Structural Layout Form Group Controls */
.auth-field-group {
    display: flex;
    flex-col: uppercase;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}
.auth-field-group label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.auth-input-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background-color: rgba(248, 250, 252, 0.6);
    color: #1e293b;
    outline: none;
    transition: all 0.15s ease-in-out;
}
.auth-input-control:focus {
    background-color: #ffffff;
    border-color: #2B6CB0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

/* Primary Execution Button Context Actions */
.auth-primary-btn {
    width: 100%;
    background-color: #2B6CB0;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    margin-top: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(43, 108, 176, 0.2);
    transition: all 0.15s ease-in-out;
}
.auth-primary-btn:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(43, 108, 176, 0.3);
}
.auth-primary-btn:active {
    transform: translateY(0);
}