/**
 * 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;
}

/* Onboarding step indicators */
.onboardStep {
    padding: 5px 0;
    font-size: 0.9rem;
}

.onboardStep.complete {
    color: darkgray;
}

.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;
}
