/* Custom corporate colors */
:root {
    --corporate-red: #e32929;
    --corporate-red-light: #ff5f5f;
    --corporate-red-dark: #c21e1e;
    --corporate-blue: #1e4b9c;
    --corporate-blue-light: #3a6bc7;
    --corporate-blue-dark: #0e3275;
    --corporate-white: #ffffff;
    --corporate-light-gray: #f8f9fa;
}

body.login-page {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Override the guest layout's login-box constraints */
.login-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
}

/* Left side - Image section */
.login-image-section {
    flex: 1;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--corporate-blue), var(--corporate-blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    background: #fff;
}

.hero-text {
    color: var(--corporate-white);
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Background decoration for image section */
.image-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 15%;
    width: 120px;
    height: 120px;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 30%;
    left: 20%;
    width: 60px;
    height: 60px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Right side - Form section */
.login-form-section {
    flex: 1;
    min-height: 100vh;
    background: var(--corporate-white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.login-container {
    background: #fff;
    border-radius: 1rem;
    padding: 3rem;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 1.5px 6px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
    margin: 0.5rem auto 1rem auto;
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (max-width: 600px) {
    .login-container {
        max-width: 98vw;
        padding: 1.2rem;
        margin: 0.5rem auto 1rem auto;
        border-radius: 0.5rem;
    }
    .custom-input-group input,
    .custom-input-group {
        width: 100%;
        min-width: 0;
        font-size: 1rem;
    }
    .login-header h3 {
        font-size: 1.25rem;
    }
    .login-header p {
        font-size: 0.95rem;
    }
}
.login-header h3 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.login-header p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Company logo in form */
.form-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.company-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-icon {
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--corporate-blue), var(--corporate-blue-light));
    border-radius: 12px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--corporate-blue-dark);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.company-tagline {
    font-size: 0.85rem;
    color: var(--corporate-red);
    letter-spacing: 0.5px;
}

.custom-input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.custom-input-group .form-control {
    border-radius: 8px;
    padding-left: 3rem;
    height: 50px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.custom-input-group .form-control:focus {
    box-shadow: 0 0 0 3px rgba(30, 75, 156, 0.2);
    border-color: var(--corporate-blue);
}

/* Password toggle styling */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    color: var(--corporate-blue);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(30, 75, 156, 0.05);
}

.password-toggle:hover {
    color: var(--corporate-red);
    background-color: rgba(227, 41, 41, 0.08);
    box-shadow: 0 0 0 3px rgba(227, 41, 41, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.password-toggle i {
    font-size: 0.9rem;
}

.password-toggle.active {
    color: var(--corporate-red);
    background-color: rgba(227, 41, 41, 0.05);
}

.custom-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--corporate-blue);
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-input-group:focus-within .custom-input-icon {
    color: var(--corporate-red);
}

.btn-sign-in {
    background: linear-gradient(135deg, var(--corporate-blue), var(--corporate-blue-dark));
    border: none;
    height: 50px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(30, 75, 156, 0.2);
}

.btn-sign-in:hover, .btn-sign-in:focus {
    background: linear-gradient(135deg, var(--corporate-blue-dark), var(--corporate-blue));
    box-shadow: 0 6px 10px rgba(30, 75, 156, 0.3);
    transform: translateY(-2px);
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--corporate-blue-light);
}

.form-check-input:checked {
    background-color: var(--corporate-blue);
    border-color: var(--corporate-blue);
}

.form-check-label {
    font-size: 0.9rem;
    color: #495057;
    margin-left: 0.5rem;
}

.auth-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
}

.auth-link {
    color: var(--corporate-blue);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.auth-link:hover {
    color: var(--corporate-red);
}

.auth-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--corporate-red);
    transition: width 0.3s ease;
}

.auth-link:hover:after {
    width: 100%;
}

.auth-link.create {
    color: var(--corporate-red);
    font-weight: 500;
}

.auth-link.create:hover {
    color: var(--corporate-red-dark);
}

/* Form background decoration */
.form-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.form-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 75, 156, 0.03), rgba(227, 41, 41, 0.03));
}

.form-shape-1 {
    top: 15%;
    right: 10%;
    width: 150px;
    height: 150px;
    opacity: 0.3;
}

.form-shape-2 {
    bottom: 20%;
    left: -50px;
    width: 200px;
    height: 200px;
    opacity: 0.2;
}

/* Welcome message */
.welcome-message {
    background: linear-gradient(135deg, rgba(30, 75, 156, 0.05), rgba(227, 41, 41, 0.05));
    border-left: 4px solid var(--corporate-red);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.welcome-message h5 {
    color: var(--corporate-blue-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.welcome-message p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Error message styling */
.validation-error {
    color: var(--corporate-red);
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
}

.validation-error i {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-image-section {
        flex: none;
        height: 40vh;
        min-height: 300px;
    }

    .hero-image {
        max-width: 250px;
        width: 60%;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .login-form-section {
        flex: none;
        min-height: 60vh;
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .login-image-section {
        height: 35vh;
        min-height: 250px;
    }

    .hero-text h2 {
        font-size: 1.75rem;
    }

    .login-form-section {
        padding: 1.5rem 1rem;
    }

    .login-header h3 {
        font-size: 1.5rem;
    }

    .floating-shape {
        display: none;
    }
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}
.login-image-section {
    flex: 1 1 0%;
    position: fixed;
    left: 0;
    top: 0;
    width: 45vw;
    height: 100vh;
    /* background-image: url('/assets/images/happy-man.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.login-image-section::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2;
}
.image-content {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    width: 100%;
    padding: 2rem;
}
.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-text p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0;
}
.login-form-section {
    flex: 1 1 0%;
    margin-left: 45vw;
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: #fff;
}
/* Mobile info banner - only visible when left panel is hidden */
.mobile-info-banner {
    display: none;
    background: linear-gradient(135deg, var(--corporate-blue), var(--corporate-blue-dark));
    color: var(--corporate-white);
    text-align: center;
    padding: 1.25rem 1rem;
    margin: 0 0 1rem 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(30, 75, 156, 0.15);
    width: 100%;
    position: relative;
    z-index: 10;
    min-height: auto;
}

.mobile-info-banner h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--corporate-white);
    line-height: 1.2;
}

.mobile-info-banner p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .login-image-section {
        display: none !important;
    }
    .login-form-section {
        margin-left: 0;
        width: 100vw;
        padding: 1rem;
        min-height: 100vh;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        flex-direction: column !important;
    }
    
    /* Show mobile banner only when left panel is hidden */
    .mobile-info-banner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    /* Reset wrapper adjustments */
    .login-wrapper {
        padding-top: 0;
        margin-top: 0;
    }
    
    /* Reset container adjustments */
    .login-container {
        margin-top: 0;
    }
}

/* Enhanced responsiveness for smaller screens */
@media (max-width: 768px) {
    .mobile-info-banner {
        padding: 1rem 0.75rem;
    }
    
    .mobile-info-banner h4 {
        font-size: 1.3rem;
    }
    
    .mobile-info-banner p {
        font-size: 0.95rem;
    }
    
    .login-form-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-info-banner {
        padding: 0.875rem 0.5rem;
    }
    
    .mobile-info-banner h4 {
        font-size: 1.2rem;
        margin-bottom: 0.125rem;
    }
    
    .mobile-info-banner p {
        font-size: 0.9rem;
    }
    
    .login-form-section {
        padding: 0.75rem 0.5rem;
    }
}
