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

:root {
    --primary-navy: #37285f;
    --primary-maroon: #e40c0c;
    --accent-blue: #3b82f6;
    --glass-white: rgba(255, 255, 255, 0.95);
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --shadow-premium: 0 8px 20px -5px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/bg image.png') no-repeat center center fixed;
    background-size: cover;
    padding: 10px;
    position: relative;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    /* Overlay to make the card pop */
    z-index: 1;
}

.split-layout {
    width: 100%;
    max-width: 610px;
    min-height: 420px;
    /* Increased slightly to fit logo */
    background: var(--glass-white);
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Left Panel - Information */
.info-panel {
    flex: 1.1;
    background: linear-gradient(135deg, var(--primary-navy) 0.8, var(--primary-maroon) 0.8);
    /* Slightly transparent */
    background: linear-gradient(135deg, rgba(55, 40, 95, 0.9) 0%, rgba(228, 12, 12, 0.9) 100%);
    color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.branding-logo {
    width: 60px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.info-content {
    position: relative;
    z-index: 2;
}

.govt-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-content .dept-text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 4px;
    display: block;
}

.info-content .govt-text {
    font-size: 0.7rem;
    font-weight: 100;
    color: #ffffff;
    text-transform: capitalize;
    letter-spacing: 1px;
}

/* Right Panel - Login */
.login-panel {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 230px;
}

.login-header {
    text-align: center;
    margin-bottom: 18px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-maroon));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-navy);
}

/* Form Styling */
.form-group-custom {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    margin-left: 1px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

.custom-input,
.custom-select {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 34px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: var(--transition);
    color: var(--text-dark);
}

.custom-input:focus,
.custom-select:focus {
    background: white;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.05);
    outline: none;
}

.custom-input:focus+i,
.custom-select:focus+i {
    color: var(--primary-navy);
}

.btn-premium {
    width: 100%;
    height: 38px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px -2px rgba(10, 25, 47, 0.3);
    margin-top: 12px;
}

.btn-premium:hover {
    background-color: #4ade80;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -5px rgba(10, 25, 47, 0.4);
    color: white;
}

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

/* Error Toast */
.error-toast {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
}

.error-toast i {
    font-size: 0.9rem;
}

.page-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.80rem;
    z-index: 3;
    pointer-events: none;
}

/* Animations */
.animate-up {
    animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

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

.delay-1 {
    animation-delay: 0.05s;
}

.delay-2 {
    animation-delay: 0.1s;
}

.delay-3 {
    animation-delay: 0.15s;
}

.delay-4 {
    animation-delay: 0.2s;
}

.delay-5 {
    animation-delay: 0.25s;
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
        max-width: 300px;
        min-height: auto;
    }

    .info-panel {
        padding: 20px;
        text-align: center;
    }

    .info-content h1 {
        font-size: 1.5rem;
    }

    .login-panel {
        padding: 20px 10px;
    }
}