html, body {
    height: 100%;
    overflow: hidden;
}
body {
    min-height: 100vh;
    height: 100vh;
    /* Remove extra padding/margin if any */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #3eaffe 0%, #77dcfb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.login-split {
    min-height: 100vh;
    height: 100vh;
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 1;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 400px;
    width: 100%;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: unset;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-card {
    width: 100%;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
    padding-bottom: 0.7rem;
}

.login-card:hover {
    transform: translateY(-5px);
}

/* Login Header */
.login-header {
    text-align: center;
    padding: 1rem 0.7rem 0.7rem 0.7rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.login-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: white;
    padding: 0.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome-msg {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 0.1rem;
}

/* Smart Badge */
.smart-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.5rem auto 0.3rem auto;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.input-group {
    position: relative;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    transform: translateY(-2px);
}

.input-group-text {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-right: none;
    color: #6b7280;
    padding: 0.3rem 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.input-group:focus-within .input-group-text {
    border-color: #6366f1;
    color: #6366f1;
}

.form-control {
    height: 1.7rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.93rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: #ffffff;
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Password Toggle Button */
.password-toggle {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-left: none;
    color: #6b7280;
    padding: 0.3rem 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.password-toggle:hover {
    color: #6366f1;
    background: transparent;
}

.input-group:focus-within .password-toggle {
    border-color: #6366f1;
    color: #6366f1;
}

/* Submit Button */
.btn-primary {
    height: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.4rem !important;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
}

.btn-primary:hover::after {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: #22c55e;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322c55e' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.was-validated .form-control:invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.invalid-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading State */
.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert i {
    font-size: 1.5rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* Team Button */
.btn-outline-primary {
    border: 2px solid #6366f1;
    color: #6366f1;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.93rem;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-card {
        max-width: 99vw;
        margin: 0.2rem;
        padding-bottom: 0.2rem;
    }
    
    .login-header {
        padding: 0.6rem 0.2rem 0.4rem 0.2rem;
    }
    
    .login-logo {
        width: 32px;
        height: 32px;
        margin-bottom: 0.3rem;
    }
    
    .login-header h2 {
        font-size: 1.75rem;
    }
    
    .smart-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .btn-primary, .btn-outline-primary {
        font-size: 0.9rem;
        padding: 0.15rem 0.4rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login-container {
        background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    }
    
    .login-card {
        background: rgba(17, 24, 39, 0.95);
    }
    
    .form-label {
        color: #e5e7eb;
    }
    
    .form-control {
        background: #1f2937;
        border-color: #374151;
        color: #f3f4f6;
    }
    
    .form-control:focus {
        background: #1f2937;
        border-color: #6366f1;
    }
    
    .input-group-text {
        background: #1f2937;
        border-color: #374151;
        color: #9ca3af;
    }
    
    .password-toggle {
        background: #1f2937;
        border-color: #374151;
        color: #9ca3af;
    }
    
    .form-control::placeholder {
        color: #6b7280;
    }
    
    .input-group:focus-within .input-group-text,
    .input-group:focus-within .password-toggle {
        border-color: #6366f1;
        color: #6366f1;
    }
}

.text-center.mt-4.mb-2,
.text-center.mt-4.mb-3 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.2rem !important;
}

.text-center.mt-3,
.text-center.mt-3.mb-4 {
    margin-top: 0.3rem !important;
    margin-bottom: 0.2rem !important;
}

.card {
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border: none;
    margin: 0 auto;
}

.card-body {
    padding: 0.5rem 0.5rem 0.2rem 0.5rem;
}

.logo {
    max-width: 80px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    margin-bottom: 0.7rem;
}

.text-center h2,
.h4 {
    color: #3eaffe !important;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.text-muted {
    color: #6b7280 !important;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background: #f3f4f6;
    border: none;
    color: #3eaffe;
    font-size: 1.1rem;
    border-radius: 8px 0 0 8px;
}

.form-control {
    height: 2.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.10);
    background: #fff;
}

.password-toggle {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-left: none;
    color: #6b7280;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
}

.password-toggle:hover {
    color: #6366f1;
    border-color: #6366f1;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    height: 2.5rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 8px rgba(99,102,241,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(99,102,241,0.18);
}

.btn-outline-primary {
    border: 2px solid #6366f1;
    color: #6366f1;
    font-weight: 500;
    border-radius: 10px;
    font-size: 0.98rem;
    padding: 0.4rem 1.2rem;
    background: transparent;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-outline-primary:hover {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.10);
}

.alert {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.97rem;
}

@media (max-width: 576px) {
    .login-container {
        max-width: 98vw;
        margin: 0.5rem;
    }
    .card-body {
        padding: 1rem 0.5rem 0.7rem 0.5rem;
    }
    .logo {
        max-width: 48px;
        margin-bottom: 0.4rem;
    }
    .btn-primary, .btn-outline-primary {
        font-size: 0.95rem;
        padding: 0.3rem 0.7rem;
    }
}

.login-split {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: #fff;
}

.login-visual {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    min-width: 0;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    position: relative;
}

.login-illustration {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.login-form-side {
    position: relative;
    background: url('../images/login-bg.jpg') center center/cover no-repeat, linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
}

.login-form-side::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(44, 62, 139, 0.65); /* dark blue with 65% opacity */
    pointer-events: none;
    border-radius: 0; /* or match your container if needed */
}

.login-container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 400px;
    width: 100%;
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: unset;
}

.card, .card-body {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group-text {
    background: #f3f4f6;
    border: none;
    color: #3eaffe;
    font-size: 1.1rem;
    border-radius: 8px 0 0 8px;
}

.form-control {
    border: none;
    border-radius: 0 8px 8px 0;
    background: #f3f4f6;
    font-size: 1.05rem;
    padding: 1.5rem 1rem;
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 2px rgba(44,62,139,0.04);
}

.form-control:focus {
    background: #fff;
    box-shadow: 0 0 0 2px #ff9800;
    outline: none;
}

.btn-primary {
    background: #ff9800;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    height: 2.7rem;
    margin-bottom: 1.2rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: #e67c00;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(255,152,0,0.18);
}

.btn-outline-primary {
    border: 2px solid #ff9800;
    color: #ff9800;
    font-weight: 600;
    border-radius: 12px;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-outline-primary:hover {
    background: #ff9800;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,152,0,0.10);
}

@media (max-width: 900px) {
    body, .login-form-side {
        background: url('../images/login-bg.jpg') center center/cover no-repeat, linear-gradient(135deg, #3eaffe 0%, #77dcfb 100%) !important;
    }
    .login-split {
        flex-direction: column;
    }
    .login-visual {
        display: none !important;
    }
    .login-form-side {
        width: 100vw;
        min-width: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent; /* background is now on body */
        position: relative;
    }
    .login-container {
        max-width: 98vw;
        width: 100vw;
        border-radius: 18px;
        box-shadow: none;
        padding: 0.8rem 0.3rem 0.3rem 0.3rem;
        border: 2.5px solid #ff9800;
        box-sizing: border-box;
        background: #fff;
        box-shadow: 0 2px 12px rgba(44,62,139,0.08);
        z-index: 2;
    }
    .card-body {
        padding: 0.5rem 0.3rem 0.3rem 0.3rem;
    }
    .logo {
        max-width: 40px;
        margin-bottom: 0.3rem;
    }
    .text-center h2, .h4 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    .text-muted {
        font-size: 0.85rem;
    }
    .input-group {
        margin-bottom: 0.8rem;
    }
    .form-control {
        padding: 1.2rem 0.8rem;
        font-size: 0.95rem;
    }
    .btn-primary {
        height: 2.3rem;
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    .btn-outline-primary {
        font-size: 0.9rem;
        padding: 0.3rem 1rem;
    }
    .login-footer {
        position: static;
        margin: 1.5rem 0 0 0;
        padding-bottom: 1.5rem;
        z-index: 2;
    }
}

.login-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    width: 100%;
    background: transparent;
    text-align: center;
    padding-top: 0.5rem;
    border-top: none;
}

.login-socials {
    margin-bottom: 0.5rem;
}

.social-icon {
    display: inline-block;
    margin: 0 0.4rem;
    color: #2d3e8b;
    font-size: 1.3rem;
    transition: color 0.2s, transform 0.2s;
    vertical-align: middle;
}

.social-icon:hover {
    color: #ff9800;
    transform: scale(1.15) rotate(-8deg);
}

.login-positive {
    color: #4b5563;
    font-size: 1.01rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.login-crafted {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.login-crafted a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.2s, text-decoration-thickness 0.2s;
}
.login-crafted a:hover {
    color: #ff9800;
    text-decoration-thickness: 2.5px;
}

@media (max-width: 900px) {
    .login-footer {
        font-size: 0.95rem;
        margin-top: 1rem;
        padding-top: 0.7rem;
    }
    .login-socials {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}

.crafted-logo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 1px 2px 4px;
    box-shadow: 0 1px 4px rgba(44,62,139,0.10);
    vertical-align: middle;
    background: #fff;
    border: 1.5px solid #ff9800;
}

/* By default, show desktop footer, hide mobile */
.login-footer-desktop { display: block; }
.login-footer-mobile { display: none; }

@media (max-width: 900px) {
    .login-footer-desktop { display: none !important; }
    .login-footer-mobile {
        display: block !important;
        position: static;
        margin: 1.5rem 0 0 0;
        padding-bottom: 1.5rem;
        z-index: 2;
        color: #fff !important;
        background: transparent;
        text-align: center;
    }
    .login-footer-mobile .login-crafted,
    .login-footer-mobile .login-positive {
        color: #fff !important;
        text-shadow: 0 1px 8px rgba(44,62,139,0.18);
    }
    .login-footer-mobile .social-icon {
        font-size: 2rem;
        margin: 0 0.7rem;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
        transition: none;
    }
    .login-footer-mobile .social-icon[aria-label="Instagram"] { color: #E4405F; text-shadow: 0 0 8px #E4405F44; }
    .login-footer-mobile .social-icon[aria-label="LinkedIn"] { color: #0077B5; text-shadow: 0 0 8px #0077B544; }
    .login-footer-mobile .social-icon[aria-label="Facebook"] { color: #1877F3; text-shadow: 0 0 8px #1877F344; }
    .login-footer-mobile .social-icon:hover { filter: brightness(1.1); }
    .login-footer-mobile .crafted-logo {
        border: 1.5px solid #fff;
        background: #fff;
    }
} 