/* ==========================================================================
   Modern Reusable Auth / Login Page Components Styling
   ========================================================================== */

/* Auth Block & Page Wrappers */
.auth-block {
    padding: 60px 0;
    background-color: #f8fafc;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Modern Auth Card Layout - Executive Dual-Tone Design with Mesh Grid */
.auth-card {
    background: 
        /* Layer 1: Subtle white mesh grid (disappears over white background) */
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        /* Layer 2: Glowing radial light highlight at top-right */
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        /* Layer 3: Solid dual-tone background stops */
        linear-gradient(to bottom, #003366 0%, #002244 115px, #ffffff 115px, #ffffff 100%) !important;
    background-size: 16px 16px, 16px 16px, 100% 100%, 100% 100% !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 4px solid #002244;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

.auth-card-body {
    padding: 36px 32px 40px 32px;
}

/* Typography (Adjusted for Navy Block Contrast) */
.auth-title {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    text-align: center;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    margin-bottom: 32px !important;
    text-align: center;
}

/* Inputs & Form Groups */
.auth-form-group {
    margin-bottom: 22px;
}

.auth-label {
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.auth-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    z-index: 10;
}

/* Stylings for form fields in login card */
.auth-input-control {
    width: 100% !important;
    height: 40px !important;
    padding: 8px 12px 8px 36px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    transition: all 0.25s ease-in-out !important;
    box-sizing: border-box !important;
}

.auth-input-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: 0 !important;
}

/* Plain input control (no left icon wrapper padding) */
.auth-input-plain {
    width: 100% !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    transition: all 0.25s ease-in-out !important;
    box-sizing: border-box !important;
}

.auth-input-plain:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
    outline: 0 !important;
}

/* Captcha Block Container Layout */
.auth-captcha-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    height: 40px;
    box-sizing: border-box;
}

.auth-captcha-image {
    border-radius: 4px;
}

.auth-captcha-refresh {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.auth-captcha-refresh:hover {
    transform: rotate(30deg);
}

/* Links & Footer Options */
.auth-link {
    color: #003366 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.auth-link:hover {
    color: #ff7a1a !important; /* Theme orange highlight */
}

.auth-footer-options {
    text-align: center;
    margin-top: 20px;
}

/* ==========================================================================
   Auth Card Header Section (icon badge + title + subtitle)
   Used by: AllotteeCancelLogin.aspx and similar auth pages
   ========================================================================== */
.auth-card-header {
    padding-top: 4px;
    text-align: center;
    /* Same layered mesh grid as .auth-card top section */
   background-size: 20px 20px, 20px 20px, 100% 100%, 100% 100%;
}

.auth-lock-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(246, 182, 11, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.auth-lock-icon i {
    font-size: 24px;
    color: #f6b60b;
}

/* ==========================================================================
   Full-width Login / Submit Button
   ========================================================================== */
.auth-login-btn {
    width: 100% !important;
    height: 44px !important;
    background: linear-gradient(135deg, #0b2a5b 0%, #153e7e 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
}

.auth-login-btn:hover {
    background: linear-gradient(135deg, #153e7e 0%, #1e55a8 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(11, 42, 91, 0.3) !important;
}

.auth-login-btn::before {
    content: "\f2f6";
    font-family: FontAwesome;
}

/* ==========================================================================
   Misc Reusable Auth Utilities
   ========================================================================== */

/* Required field asterisk */
.auth-req-star {
    color: #ef4444 !important;
    font-size: 14px;
    line-height: 1;
}

/* Footer note below button */
.auth-footer-note {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   Modern ModalPopupExtender Overlay & Panel Styling
   ========================================================================== */
.modalBackground {
    background-color: rgba(15, 23, 42, 0.5) !important; /* Semi-transparent slate */
    backdrop-filter: blur(5px) !important; /* Elegant backdrop blur */
    z-index: 10000 !important;
}

.modern-modal-panel {
    background: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden;
    padding: 0 !important;
    font-family: inherit !important;
    z-index: 10001 !important;
}

.modal-header {
    background: linear-gradient(135deg, #0b2a5b 0%, #153e7e 100%);
    padding: 18px 24px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-header i {
    color: #f6b60b;
    font-size: 20px;
}

.modal-body {
    padding: 24px;
    color: #334155;
    font-size: 13.5px;
    line-height: 1.6;
}

.modal-body .ip-highlight {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: Consolas, Monaco, monospace;
    font-weight: bold;
    color: #0b2a5b;
    border: 1px solid #e2e8f0;
}

.modal-footer {
    background: #f8fafc;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Custom styled action checkbox */
.modal-chk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ef4444; /* Force sign-out color indicator */
    transition: all 0.2s ease;
    user-select: none;
    margin: 0 !important;
}

.modal-chk-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    transform: translateY(-0.5px);
}

.modal-chk-btn input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    transform: scale(1.1) !important;
    cursor: pointer !important;
}

/* Modal Cancel / Close button */
.modal-btn-cancel {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 9px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08) !important;
}

.modal-btn-cancel:hover {
    background: linear-gradient(135deg, #7889a4 0%, #5b6c85 100%) !important;
    transform: translateY(-0.5px);
    box-shadow: 0 8px 15px rgba(100, 116, 139, 0.25) !important;
}

