@import url('fonts.css');
/* Body & Layout */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

.split-screen-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Visual Section (The Abstract Image) */
.visual-section {
    background: url('../new-images/bg-abstract.png'), linear-gradient(180deg, #0D355C 0%, #000F1C 100%);
    background-size: cover;
    background-repeat: no-repeat;
    height: 30vh; /* Mobile height */
    width: 100%;
    position: relative;
    display: flex; /* Flex to center content */
    align-items: center; /* Vertical center by default */
    justify-content: center; /* Horizontal center by default */
}

.visual-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    height: 30px;
    width: auto;
    z-index: 5; /* Ensure it stays above overlay */
}

.visual-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13,53,92,0.8), rgba(0,15,28,0.8));
    z-index: 1; /* Under text, above image */
}

/* Visual Text Content */
.visual-content {
    position: relative;
    z-index: 2; /* Ensure text is above overlay */
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.visual-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    margin: 0;
    margin-top: 90px;
    text-align: start;
}

.visual-horizontal-line {
    border: 1px solid #40AAF0;
    width: 75%;
    margin-top: 20px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.visual-text-subtitle {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    margin: 0;
    font-weight: 100;
    text-align: start;
}

/* Form Section */
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 2rem;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* Typography */
.login-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: #212529;
    text-align: left;
    display: block;
    margin-bottom: 0.5rem;
}

.custom-input-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input-group:focus-within {
    border-color: #0d1b2a;
    box-shadow: 0 0 0 3px rgba(13, 27, 42, 0.1);
}

#toggleIcon {
    filter: invert(47%) sepia(10%) saturate(1266%) hue-rotate(178deg) brightness(95%) contrast(88%);
}

.input-group-text {
    background: transparent;
    border: none;
    color: #adb5bd;
    padding-left: 12px;
    padding-bottom: 5px;
}

.form-control {
    border: none;
    box-shadow: none;
    padding: 12px;
    font-size: 1rem;
    color: #495057;
    background: transparent;
}

.form-control::placeholder {
    color: #64748B;
    opacity: 1; /* Ensure Firefox renders it fully opaque */
}

.form-control:focus {
    box-shadow: none;
    background: transparent;
}

/* Button */
.btn-primary.custom-btn {
    background-color: #0B2946; /* Dark Navy */
    border-color: #0B2946;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary.custom-btn:hover {
    background-color: #0B2946;
    border-color: #0B2946;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.2);
}

.btn-primary.custom-btn:active {
    transform: translateY(0);
}

.custom-back-btn {
    background-color: #F1F5F9;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -50px;
    margin-bottom: 50px;
}

.custom-back-btn:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

.navigation li a:focus, .navigation li a:hover {
    background-color: #F1F8FE !important;
}

/* Error states */
.custom-input-group.is-invalid {
    border-color: #E05D5D !important;
}

.error-text {
    color: #E05D5D;
    font-size: 0.95rem;
    margin-top: 10px;
    text-align: left;
    display: block;
    font-weight: 400;
}


/* Desktop Styles */
@media (min-width: 992px) {
    .split-screen-container {
        flex-direction: row;
        height: 100vh;
        overflow: hidden; /* Prevent scroll on full screen */
    }

    .visual-section {
        flex: 1; /* Takes remaining space (50-60%) */
        height: 100%;
        order: 1; /* Left side */
    }

    .form-section {
        flex: 1; /* Takes remaining space */
        max-width: 50%; /* Optional: limit width */
        height: 100%;
        order: 2; /* Right side */
        padding: 4rem;
    }

    .form-wrapper {
        text-align: left; /* Often looks better left-aligned on desktop split, but specific request seemed centered text */
        /* Let's keep it centered as per mockup picture */
        text-align: center;
    }

    .login-title {
        font-size: 3rem;
    }

    .visual-text {
        font-size: 3rem;
        max-width: 80%;
        margin: 0 auto;
    }

    .visual-horizontal-line {
        margin-left: 10%;
    }

    .visual-text-subtitle {
        font-size: 1rem;
        max-width: 80%;
        margin: 0 auto;
    }
}
