/* Modern Authentication Pages - Light Mode Only */

/* Animated background with neon glassmorphism */
body.horizontal-layout.blank-page {
    background: #0F1522 !important;
    background-image: none !important;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated specks/particles */
body.horizontal-layout.blank-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(3px 3px at 20% 30%, rgba(0, 212, 255, 0.6), transparent),
        radial-gradient(3px 3px at 60% 70%, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(0, 212, 255, 0.7), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(0, 212, 255, 0.6), transparent),
        radial-gradient(3px 3px at 90% 40%, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(2px 2px at 33% 60%, rgba(0, 212, 255, 0.6), transparent),
        radial-gradient(2px 2px at 66% 20%, rgba(0, 212, 255, 0.5), transparent),
        radial-gradient(4px 4px at 10% 80%, rgba(0, 212, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40% 15%, rgba(0, 212, 255, 0.6), transparent),
        radial-gradient(3px 3px at 70% 90%, rgba(0, 212, 255, 0.5), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 25% 75%, 75% 25%, 10% 80%, 40% 15%, 70% 90%;
    animation: speckMove 20s ease-in-out infinite;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

@keyframes speckMove {
    0%, 100% {
        background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%, 25% 75%, 75% 25%, 10% 80%, 40% 15%, 70% 90%;
    }
    25% {
        background-position: 10% 10%, 90% 10%, 10% 90%, 90% 90%, 60% 40%, 35% 65%, 65% 35%, 20% 70%, 50% 25%, 80% 80%;
    }
    50% {
        background-position: 5% 5%, 95% 5%, 5% 95%, 95% 95%, 40% 60%, 15% 85%, 85% 15%, 5% 90%, 30% 10%, 60% 100%;
    }
    75% {
        background-position: 15% 15%, 85% 15%, 15% 85%, 85% 85%, 55% 45%, 30% 70%, 70% 30%, 25% 60%, 45% 20%, 75% 70%;
    }
}

/* Subtle gradient overlay */
body.horizontal-layout.blank-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 21, 34, 0.85) 0%, rgba(10, 15, 26, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Ensure content is above background */
.content-wrapper,
.content-body,
.flexbox-container {
    position: relative;
    z-index: 1;
}

/* Ensure content is vertically centered */
.flexbox-container {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Authentication card - Modern, clean design */
.bg-authentication {
    background: white !important;
    background-color: white !important;
    border: none !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
    width: 100%;
}

/* Single column auth cards (login, register) - narrower */
.flexbox-container > div > .bg-authentication:not(:has(.col-lg-5)):not(:has(.col-lg-6)):not(:has(.col-lg-7)) {
    max-width: 650px;
}

/* Two-column auth cards (TFA page) - wider */
.flexbox-container > div > .bg-authentication:has(.col-lg-5),
.flexbox-container > div > .bg-authentication:has(.col-lg-6),
.flexbox-container > div > .bg-authentication:has(.col-lg-7) {
    max-width: 800px;
}

.bg-authentication .login-footer {
    padding: 1rem 1.5rem 0.5rem;
}

.bg-authentication .login-footer .footer-btn .btn {
    padding: 0.9rem 1.2rem !important;
    margin: 1rem 1rem 1rem 0;
}

.login-logo {
    height: 65px;
    margin-bottom: 0.5rem;
}

/* Navigation tabs - Modern styling */
.bg-authentication .nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.bg-authentication .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6b7280;
    padding: 0.875rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.bg-authentication .nav-tabs .nav-link:hover {
    border-bottom-color: #1e317e;
    color: #1e317e;
    background: transparent;
}

.bg-authentication .nav-tabs .nav-link.active {
    border-bottom-color: #1e317e;
    color: #1e317e;
    background: transparent;
    font-weight: 600;
}

/* Card header */
.bg-authentication .card-header {
    background: transparent !important;
    border: none !important;
    padding: 1.5rem 1.5rem 0.5rem !important;
}

.bg-authentication .card-title h4 {
    color: #111827;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

/* Form elements - Modern, clean inputs */
.bg-authentication .form-label-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.bg-authentication .form-control {
    border: 2px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    height: auto !important;
    line-height: 1.5 !important;
}

/* Inputs with icons need left padding for icon space */
.bg-authentication .has-icon-left .form-control {
    padding-left: 3rem !important;
}

.bg-authentication .form-control:focus {
    border-color: #1e317e !important;
    box-shadow: 0 0 0 4px rgba(30, 49, 126, 0.1) !important;
    outline: none !important;
    background-color: #ffffff !important;
}

.bg-authentication .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Form control icons - positioned relative to the .has-icon-left wrapper */
.bg-authentication .has-icon-left {
    position: relative;
}

.bg-authentication .form-control-position {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 10;
    pointer-events: none;
}

.bg-authentication .form-control:focus + .form-control-position {
    color: #1e317e;
}

/* Labels */
.bg-authentication label {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Buttons - Modern gradient buttons */
.bg-authentication .btn-primary {
    background: linear-gradient(135deg, #1e317e 0%, #2d4a9e 100%) !important;
    border: none !important;
    color: white !important;
    padding: 0.875rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 12px rgba(30, 49, 126, 0.3) !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
}

.bg-authentication .btn-primary:hover {
    background: linear-gradient(135deg, #2d4a9e 0%, #1e317e 100%) !important;
    filter: brightness(1.05) !important;
    box-shadow: 0 6px 20px rgba(30, 49, 126, 0.4) !important;
    transform: translateY(-1px) !important;
    color: white !important;
}

.bg-authentication .btn-primary:active {
    transform: translateY(0) !important;
}

/* Outline buttons */
.bg-authentication .btn-outline-primary {
    border: 2px solid #1e317e !important;
    color: #1e317e !important;
    background: transparent !important;
    padding: 0.875rem 1.5rem !important;
    font-weight: 500 !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
}

.bg-authentication .btn-outline-primary:hover {
    background: #1e317e !important;
    color: white !important;
    border-color: #1e317e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(30, 49, 126, 0.2) !important;
}

/* Links */
.bg-authentication .card-link {
    color: #1e317e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bg-authentication .card-link:hover {
    color: #2d4a9e;
    text-decoration: underline;
}

/* Checkbox styling */
.bg-authentication .vs-checkbox-con {
    color: #374151;
}

.bg-authentication .vs-checkbox-con span:not(.vs-checkbox):not(.vs-checkbox--check) {
    color: #374151;
    font-weight: 500;
}

/* Terms and conditions checkbox */
.bg-authentication .custom-control-label {
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}

.bg-authentication .custom-control-label .terms-link {
    color: #1e317e;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.bg-authentication .custom-control-label .terms-link:hover {
    color: #2d4a9e;
    text-decoration: underline;
}

.bg-authentication .custom-control-input:checked ~ .custom-control-label {
    color: #111827;
}

/* Alerts */
.bg-authentication .alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.bg-authentication .alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* OR divider */
.bg-authentication .text-muted {
    color: #6b7280;
    font-size: 0.875rem;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.bg-authentication .text-muted::before,
.bg-authentication .text-muted::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.bg-authentication .text-muted::before {
    margin-right: 1rem;
}

.bg-authentication .text-muted::after {
    margin-left: 1rem;
}

/* Card body padding */
.bg-authentication .card-body {
    padding: 1.5rem 1.5rem 2rem !important;
}

.bg-authentication .card-content {
    padding: 0;
}

/* Form group spacing */
.bg-authentication .form-group {
    margin-bottom: 1.5rem;
}

/* Register page tooltip fix */
#password-tooltip {
    position: relative;
    top: -28px;
    float: left;
    left: -20px;
}

/* Fix register page vertical centering */
section.row.justify-content-center {
    min-height: calc(100vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Info text with icon - better spacing and alignment */
.bg-authentication .text-muted.small {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
    line-height: 1.5;
    text-align: left;
}

.bg-authentication .text-muted.small i {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* IE11 fix */
@media (-ms-high-contrast: none), screen and (-ms-high-contrast: active) {
    .bg-authentication {
        width: 100%;
    }
}
