/* ========================================
   Login Page Specific Styles
   ======================================== */

/* Remove left panel background - it's now transparent */
.auth-one-bg {
    background-image: none !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

/* Logo container - centered */
.auth-one-bg .position-relative {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-one-bg .mb-4 {
    margin-bottom: 0 !important;
}

.auth-one-bg .mb-4 a {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.auth-one-bg .mb-4 img {
    height: 80px !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.auth-one-bg .mb-4 a:hover img {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
    transform: scale(1.05);
}


@keyframes slide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes slideVertical {
    0% {
        top: -100%;
    }
    100% {
        top: 100%;
    }
}

/* Solid green background like the left panel */
.auth-page-wrapper.auth-bg-cover {
    background: #2d6a52 !important;
}

/* Subtle overlay for depth */
.auth-page-wrapper.auth-bg-cover > .bg-overlay {
    background: rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
}

/* Move decorative lines to main background */
.auth-page-wrapper .auth-decorative-lines {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.auth-page-wrapper .auth-decorative-lines span {
    position: absolute;
    display: block;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: slide 8s linear infinite;
}

.auth-page-wrapper .auth-decorative-lines span:nth-child(1) {
    width: 100%;
    height: 1px;
    top: 15%;
    left: -100%;
    animation-delay: 0s;
}

.auth-page-wrapper .auth-decorative-lines span:nth-child(2) {
    width: 100%;
    height: 1px;
    top: 75%;
    right: -100%;
    animation-delay: 3s;
    animation-direction: reverse;
}

.auth-page-wrapper .auth-decorative-lines span:nth-child(3) {
    width: 1px;
    height: 100%;
    left: 20%;
    top: -100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: slideVertical 10s linear infinite;
    animation-delay: 1.5s;
}

/* Ensure gradient background fills entire screen */
.auth-page-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
}

/* Remove body margins for auth pages */
body:has(.auth-page-wrapper) {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

html:has(.auth-page-wrapper),
html:has(.auth-page-wrapper) body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

/* Card styling */
.auth-page-wrapper .card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
    backdrop-filter: blur(10px);
}

/* Right form panel - white background with fixed height to prevent resizing */
.auth-page-wrapper .card .col-lg-6:last-child .p-lg-5,
.auth-page-wrapper .card .col-lg-6:last-child .p-4 {
    background: #ffffff;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

/* Welcome text color override */
.auth-page-wrapper .text-primary {
    color: #2d6a52 !important;
}

/* Email link styling */
.auth-page-wrapper .footer a,
.auth-page-wrapper a[href^="mailto:"] {
    color: #2d6a52 !important;
    text-decoration: none;
    font-weight: 500;
}

.auth-page-wrapper .footer a:hover,
.auth-page-wrapper a[href^="mailto:"]:hover {
    color: #255a45 !important;
    text-decoration: underline;
}

/* Support email in login form */
.auth-page-wrapper .p-lg-5 a[href^="mailto:"],
.auth-page-wrapper .p-4 a[href^="mailto:"] {
    color: #2d6a52 !important;
    font-weight: 500;
}

/* Forgot password link - visible by default, inline with password label */
.forgot-password-link {
    display: inline-block;
    margin: 0;
}

.forgot-password-link.highlight {
    animation: highlightWave 1s ease-in-out;
}

.forgot-password-link a {
    font-size: 0.875rem;
    color: #6c757d !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password-link a:hover {
    color: #495057 !important;
    text-decoration: underline;
}

@keyframes highlightWave {
    0%, 100% {
        transform: translateX(0);
        color: inherit;
    }
    10%, 30%, 50% {
        transform: translateX(-5px);
    }
    20%, 40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(0);
    }
}

.forgot-password-link.highlight a {
    animation: colorPulse 1s ease-in-out;
}

@keyframes colorPulse {
    0%, 100% {
        color: #6c757d;
    }
    50% {
        color: #dc3545;
        font-weight: 600;
    }
}

/* Checkbox styling */
.auth-page-wrapper .form-check-input:checked {
    background-color: #2d6a52;
    border-color: #2d6a52;
}

.auth-page-wrapper .form-check-input:focus {
    border-color: #3d8a6a;
    box-shadow: 0 0 0 0.25rem rgba(61, 138, 106, 0.25);
}

/* Form styling enhancements */
.auth-page-wrapper .form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

/* Hide validation icons completely for all form fields */
.auth-page-wrapper .form-control.is-valid,
.auth-page-wrapper .form-control.is-invalid {
    background-image: none !important;
}

/* Password field - reduce padding since no validation icons */
.auth-page-wrapper .auth-pass-inputgroup .form-control {
    padding-right: 45px !important;
    background-image: none !important;
}

/* Error messages appear below field in normal flow */
.auth-page-wrapper .auth-pass-inputgroup .invalid-feedback,
.auth-page-wrapper .auth-pass-inputgroup .valid-feedback {
    position: relative;
    display: block;
    margin-top: 0.25rem;
}

.auth-page-wrapper .form-control:focus {
    border-color: #3d8a6a;
    box-shadow: 0 0 0 0.2rem rgba(61, 138, 106, 0.15);
}

.auth-page-wrapper .btn-success {
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #2d6a52;
    border: none;
}

.auth-page-wrapper .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 106, 82, 0.4);
    background: #255a45;
}

/* Footer styling for auth page */
.auth-page-wrapper .footer {
    color: rgba(255, 255, 255, 0.8);
}

.auth-page-wrapper .footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive adjustments for auth page */
@media (max-width: 991.98px) {
    .auth-page-wrapper .card .col-lg-6:first-child {
        display: none;
    }

    .auth-page-content {
        padding-top: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .auth-page-wrapper {
        padding: 1rem 0 !important;
    }

    .auth-page-content .container {
        padding: 0 1rem;
    }

    .auth-page-wrapper .p-lg-5 {
        padding: 1.5rem !important;
    }
}
