* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #003b67 0%, #1a5f8a 50%, #ff6b00 100%);
    background-size: 400% 400%;
    position: relative;
    overflow-x: hidden;
    animation: gradientBG 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated Background Overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI5MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii4wNSIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjAyIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48cGF0aCBkPSJNMCAwaDE0NDB2OTAwaC0xNDQweiIgZmlsbD0idXJsKCNhKSIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+');
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50%) translateY(-50%); }
}

/* Floating Shapes with New Colors */
.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    background: linear-gradient(135deg, #003b6720, #ff6b0020);
    animation: float1 8s infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    background: linear-gradient(135deg, #ff6b0020, #003b6720);
    animation: float2 10s infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
    background: rgba(255, 107, 0, 0.03);
    animation: float3 12s infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

@keyframes float3 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Main Container */
.login-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 50px 100px rgba(0, 59, 103, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 1000px; /* Reduced from 1100px */
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: slideIn 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0; /* Remove any default margin */
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Panel - Branding */
.brand-panel {
    background: linear-gradient(135deg, #003b67 0%, #1a5f8a 50%, #ff6b00 100%);
    padding: 40px 35px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI5MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii4xIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIuMDUiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0wIDBoMTQ0MHY5MDBoLTE0NDB6IiBmaWxsPSJ1cmwoI2EpIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=');
    opacity: 0.2;
    animation: brandPattern 20s linear infinite;
}

@keyframes brandPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50%) translateY(-50%); }
}

.brand-logo {
    text-align: center;
    margin-bottom: 20px; /* Reduced margin */
    position: relative;
    z-index: 2;
}

.brand-logo img {
    height: 90px; /* Reduced from 100px */
    width: auto;
    filter: brightness(0) invert(1);
    animation: logoPulse 2s infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand-title {
    color: white;
    font-size: 2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    text-align: center;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem; /* Reduced from 1.2rem */
    font-weight: 300;
    margin-bottom: 25px; /* Reduced margin */
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
    text-align: center;
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem; /* Reduced from 1rem */
    line-height: 1.6; /* Reduced line height */
    margin-bottom: 25px; /* Reduced margin */
    position: relative;
    z-index: 2;
    font-style: italic;
    border-left: 4px solid #ff6b00;
    padding-left: 15px; /* Reduced padding */
}

.brand-features {
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced gap */
    margin-bottom: 18px; /* Reduced margin */
    color: white;
    animation: fadeInLeft 0.5s ease;
    animation-fill-mode: both;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 40px; /* Reduced from 45px */
    height: 40px; /* Reduced from 45px */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px; /* Reduced from 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Reduced from 1.3rem */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.feature-item:hover .feature-icon {
    background: #ff6b00;
    color: white;
    transform: rotateY(180deg);
    border-color: transparent;
}

.feature-text h4 {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    margin-bottom: 3px; /* Reduced margin */
}

.feature-text p {
    font-size: 0.8rem; /* Reduced from 0.85rem */
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

/* Right Panel - Login Form */
.form-panel {
    padding: 40px 40px; /* Reduced padding */
    background: white;
}

/* Logo in Form Panel */
.form-logo {
    text-align: center;
    margin-bottom: 15px; /* Reduced margin */
}

.form-logo img {
    height: 80px; /* Reduced from 70px */
    width: auto;
    animation: fadeInDown 0.8s ease;
}

.form-header {
    text-align: center;
    margin-bottom: 25px; /* Reduced margin */
}

.form-header h3 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
}

.form-header h2 {
    font-size: 1.8rem; /* Reduced from 2rem */
    font-weight: 700;
    color: #003b67;
    margin-bottom: 5px;
}

.form-header p {
    color: #888;
    font-size: 0.9rem; /* Reduced from 0.95rem */
}

.form-header p i {
    color: #ff6b00;
    margin: 0 5px;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    max-width: 100%;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px; /* Reduced from 25px */
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px; /* Reduced from 8px */
    color: #555;
    font-weight: 500;
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px; /* Reduced from 15px */
    top: 50%;
    transform: translateY(-50%);
    color: #003b67;
    font-size: 1rem; /* Reduced from 1.1rem */
    transition: all 0.3s ease;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Reduced padding */
    border: 2px solid #e0e0e0;
    border-radius: 12px; /* Reduced from 15px */
    font-size: 0.9rem; /* Reduced from 0.95rem */
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b00;
    background: white;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
}

.form-control:focus + .input-icon {
    color: #ff6b00;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle {
    position: absolute;
    right: 12px; /* Reduced from 15px */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #003b67;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* Reduced from 30px */
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    cursor: pointer;
}

.remember-checkbox input[type="checkbox"] {
    width: 16px; /* Reduced from 18px */
    height: 16px; /* Reduced from 18px */
    cursor: pointer;
    accent-color: #ff6b00;
}

.remember-checkbox span {
    color: #555;
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

.forgot-link {
    color: #003b67;
    text-decoration: none;
    font-size: 0.85rem; /* Reduced from 0.9rem */
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #ff6b00;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px; /* Reduced from 16px */
    background: linear-gradient(135deg, #003b67, #ff6b00);
    border: none;
    border-radius: 12px; /* Reduced from 15px */
    color: white;
    font-size: 0.95rem; /* Reduced from 1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 59, 103, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 450px; /* Smaller max-width for mobile */
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        padding: 35px 25px;
    }
}

@media (max-width: 576px) {
    .form-panel {
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .form-logo img {
        height: 45px;
    }
}

/* Fix for logo not displaying clearly - add background and padding if needed */
.brand-logo img, .form-logo img {
    object-fit: contain;
    background: transparent;
    border-radius: 8px;
}

/* If logo has white background, add this */
.brand-logo img[src*="k-seva-1"] {
    /* background: white; */
    padding: 5px;
    border-radius: 10px;
    filter: none; /* Remove the invert filter for this specific logo */
}