@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-saffron: #FF9933;
    --color-green: #138808;
    --color-navy: #000080;
    --color-india-red: #d8251e;
    --color-success: #198754;
    --font-main: 'Poppins', sans-serif;
    --radius-input: 12px;
    --radius-button: 12px;
    --radius-glass: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Split screen container */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Half - Hero */
.hero-half {
    position: relative;
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow: hidden;
    background-color: #0b132b;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: blur(2px);
    transform: scale(1.05);
    /* prevents blur artifacts at edges */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 128, 0) 0%, rgba(0, 0, 128, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
}

/* Glassmorphism box */
.glass-box {
    position: relative;
    z-index: 3;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    /* padding: 4rem; */
    max-width: 500px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-logo {
    max-height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* High contrast text inside glassmorphism box for critical readability */
.brand-title-hindi {
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    /* text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6); */
}

.brand-title-english {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0.5rem;
    line-height: 1.4;
    /* text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6); */
}

.brand-subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    /* text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.6); */
}

/* Right Half - Form */
.form-half {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 3rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

/* Accent Top Stripe representing brand colors */
/* .top-accent-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right,
            var(--color-saffron) 0%,
            #ffffff 25%,
            var(--color-navy) 50%,
            #ffffff 75%,
            var(--color-green) 100%);
    z-index: 10;
} */

.form-container {
    width: 100%;
    max-width: 400px;
}

/* Logos Header in Form */
.form-logos-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding-bottom: 50px;
}

.logo-separator {
    width: 1.5px;
    height: 35px;
    background-color: #e2e8f0;
}

.header-logo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-india-red);
}

.form-subtitle {
    font-size: 0.95rem;
}

/* Custom Floating Input Styling with icons */
.form-group-custom {
    position: relative;
}

.form-group-custom .form-control {
    border-radius: var(--radius-input);
    border: 1.5px solid #e2e8f0;
    padding-left: 3rem !important;
    height: 58px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group-custom .form-control:focus {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 4px rgba(0, 0, 128, 0.08);
}

.form-group-custom label {
    padding-left: 3rem !important;
    color: #64748b;
    font-size: 0.95rem;
}

.form-group-custom .input-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 5;
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-group-custom .form-control:focus~.input-icon {
    color: var(--color-navy);
}

/* Login submit button styling */
.btn-login-submit {
    background-color: var(--color-india-red);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-button);
    border: none;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(216, 37, 30, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-submit:hover {
    background-color: var(--color-green);
    box-shadow: 0 6px 16px rgba(19, 136, 8, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-login-submit:active {
    transform: translateY(0);
}

.credentials-box {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .split-container {
        flex-direction: column;
    }

    .hero-half {
        flex: none;
        min-height: 40vh;
        padding: 3rem 1.5rem;
    }

    .glass-box {
        padding: 2rem 1.5rem;
    }

    .brand-title-hindi {
        font-size: 1.35rem;
    }

    .brand-title-english {
        font-size: 1rem;
    }

    .form-half {
        padding: 3rem 1.5rem;
        box-shadow: none;
    }
}