/**
 * Auth Pages Styles
 * Clean Bootstrap 5 styling for login, registration, and standalone splash pages
 * Replaces Velzon auth page styles
 */

/* Body background for auth pages - prevents white bar at bottom */
body:has(.auth-page-wrapper) {
    background-color: #1a376a;
}

/* Auth Page Wrapper - Main container for full-page auth layouts */
.auth-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-page-wrapper .auth-page-content {
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.auth-page-wrapper .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.75);
}

/* Auth Background Cover - Clean background */
.auth-bg-cover {
    background-color: #1a376a;
    position: relative;
}

.auth-bg-cover > .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/cover-pattern.png");
    background-position: center;
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

.auth-bg-cover .footer {
    color: rgba(255, 255, 255, 0.6);
}

.auth-bg-cover .footer a {
    color: rgba(255, 255, 255, 0.8);
}

.auth-bg-cover .footer a:hover {
    color: #ffffff;
}

/* Auth One Background - Left panel background for split layouts */
.auth-one-bg {
    background-image: url("../img/md-duran-1VqHRwxcCCw-unsplash.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
}

.auth-one-bg > .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 59, 110, 0.9) 0%, rgba(61, 120, 227, 0.8) 100%);
}

.auth-one-bg .position-relative {
    z-index: 2;
}

/* Splash Page Logo */
.splash-page-logo {
    max-width: 305px;
    margin: 0 auto;
    padding-bottom: 30px;
    text-align: center;
}

.splash-page-logo img {
    max-width: 100%;
    height: auto;
}

/* Card styling for auth pages */
.auth-page-wrapper .card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.5rem;
}

/* Registration footer links */
.reg_footerlinks {
    padding: 10px 0;
}

.reg_footerlinks a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.reg_footerlinks a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Error pages specific styles */
.error-500 {
    position: relative;
}

.error-500 .title {
    font-size: 10rem;
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.error-500 .error-img {
    max-width: 100%;
    height: auto;
}

/* Carousel for testimonials */
.auth-one-bg .carousel-inner {
    padding: 20px 0;
}

.auth-one-bg .carousel-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.auth-one-bg .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
}

/* Form styling */
.auth-page-wrapper .form-control:focus {
    border-color: #3d78e3;
    box-shadow: 0 0 0 0.2rem rgba(61, 120, 227, 0.25);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .auth-one-bg {
        display: none;
    }

    .auth-page-wrapper .card {
        margin: 0 15px;
    }
}

@media (max-width: 767.98px) {
    .splash-page-logo {
        max-width: 250px;
        padding-bottom: 20px;
    }

    .error-500 .title {
        font-size: 6rem;
    }
}

/* Onboarding sidebar (also uses auth page wrapper) */
.onboard-sidebar {
    background-color: #1f2c3e;
    color: #FFFFFF;
    padding: 20px;
}

.onboard-sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

.onboard-sidebar h5 {
    color: #FFFFFF;
}

.onboard-main h5,
.onboard-main h4 {
    color: #1f2c3e;
}

/* Dark mode override — the brand-navy heading color above is unreadable on the
 * Bootstrap-dark card background. Use the standard body color so headings adapt. */
[data-bs-theme="dark"] .onboard-main h5,
[data-bs-theme="dark"] .onboard-main h4,
[data-bs-theme="dark"] .onboard-main h3,
[data-bs-theme="dark"] .onboard-main h2,
[data-bs-theme="dark"] .onboard-main h1,
[data-bs-theme="dark"] .onboard-main h6 {
    color: var(--bs-body-color);
}

/* The error/info alert added to LinkProcessor uses .alert-heading inside .onboard-main —
 * .onboard-main h5 above wins on specificity in light mode (and explicitly in dark via
 * the override). For alerts specifically, let Bootstrap's .alert-heading color: inherit
 * carry the alert variant color so warning/danger/info alerts still look right. */
.onboard-main .alert .alert-heading {
    color: inherit;
}

/* Onboarding step indicators */
.onboardStep {
    padding: 6px 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0;
    transition: color 0.15s ease;
}

.onboardStep .stepIcon {
    display: inline-flex;
    align-items: center;
    width: 1.5rem;
    flex-shrink: 0;
}

/* Future steps — muted, semantic icon already in place */
.onboardStep:not(.complete):not(.inProgress) .stepIcon i {
    color: rgba(255, 255, 255, 0.35);
}

/* Completed steps — green checkmark */
.onboardStep.complete {
    color: rgba(255, 255, 255, 0.55);
}

.onboardStep.complete .stepIcon i {
    color: #68df1b;
}

/* Active / current step — accent color, bold */
.onboardStep.inProgress {
    color: #ffffff;
    font-weight: 600;
}

.onboardStep.inProgress .stepIcon i {
    color: #68df1b;
    font-weight: 900;
}

.onboardStep.complete span.stepIcon {
    color: #589662;
}

.onboardStep.inProgress {
    color: #23bdee;
    font-weight: bold;
}

.onboardStep.inProgress span.stepIcon {
    color: #23bdee;
}

.onboardStep span.stepIcon {
    padding-right: 5px;
    margin-top: 1px;
}

/* Non-production warning bar */
.nonProdWarning {
    width: 100%;
    background-color: goldenrod;
    color: #000000;
    text-align: center;
    padding: 5px;
    font-weight: 500;
}

/* SVG Logo sizing */
.svgLogo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    max-height: 50px;
    max-width: 200px;
}

/* Button styling enhancements */
.auth-page-wrapper .btn-success {
    background-color: #67b173;
    border-color: #67b173;
    color: #ffffff;
}

.auth-page-wrapper .btn-success:hover {
    background-color: #5a9c64;
    border-color: #5a9c64;
    color: #ffffff;
}

.auth-page-wrapper .btn-primary {
    background-color: #3d78e3;
    border-color: #3d78e3;
    color: #ffffff;
}

.auth-page-wrapper .btn-primary:hover {
    background-color: #2d68d3;
    border-color: #2d68d3;
    color: #ffffff;
}

/* ============================================================
   Onboarding — progress strip + reassurance + mobile sidebar
   ============================================================ */

/* Desktop progress strip (above page content) */
.onboard-progress-strip {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.onboard-progress-bar {
    height: 6px;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.onboard-progress-fill {
    height: 100%;
    background-color: #68df1b;
    border-radius: 999px;
    transition: width 0.4s ease-in-out;
}
.onboard-progress-text {
    font-weight: 500;
    color: #6c757d;
}

/* Sidebar reassurance copy */
.onboard-saved-note {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}
.onboard-saved-note .bi {
    color: #68df1b;
}

/* Mobile compact progress (xs/sm only) */
.onboard-mobile-progress {
    background-color: #1a376a;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.onboard-mobile-progress .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
.onboard-mobile-progress .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background-color: transparent;
}
.onboard-mobile-progress .btn-outline-primary:hover,
.onboard-mobile-progress .btn-outline-primary:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}
.onboard-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.onboard-mobile-list li {
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
}
.onboard-mobile-list li.complete {
    color: rgba(255, 255, 255, 0.55);
}
.onboard-mobile-list li.complete .stepIcon i {
    color: #68df1b;
}
.onboard-mobile-list li.inProgress {
    color: #ffffff;
    font-weight: 600;
}
.onboard-mobile-list li.inProgress .stepIcon i {
    color: #68df1b;
}
.onboard-mobile-list .stepIcon {
    margin-right: 0.5rem;
}
