/* LOGIN CUSTOM STYLES - Dynamic & Interactive */

/* 1. RESET OVERRIDES & BACKGROUND */
#login-page {
    /* Override existing background */
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particles Container z-index fix */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* 2. CARD GLASSMORPHISM & ANIMATION */
.login-wrapper {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 2rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    z-index: 10;
    transform: translateY(30px);
    opacity: 0;
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 3. MASCOT STYLES */
.andro-mascot {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    position: relative;
}

.andro-head {
    width: 80px;
    height: 70px;
    background: #4F46E5;
    border-radius: 40px 40px 30px 30px;
    position: absolute;
    left: 10px;
    top: 15px;
    z-index: 5;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.andro-eyes {
    display: flex;
    justify-content: space-between;
    padding: 25px 18px 0;
}

.andro-eye {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.andro-pupil {
    width: 6px;
    height: 6px;
    background: #1e1b4b;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s;
}

.andro-hands {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.andro-hand {
    width: 25px;
    height: 35px;
    background: #4338CA;
    border-radius: 15px;
    position: absolute;
    top: 60px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.andro-hand-left {
    left: 0;
    transform: rotate(-20deg);
}

.andro-hand-right {
    right: 0;
    transform: rotate(20deg);
}

.andro-mascot.shy .andro-hand-left {
    top: 25px;
    left: 15px;
    transform: rotate(0deg) scale(1.1);
}

.andro-mascot.shy .andro-hand-right {
    top: 25px;
    right: 15px;
    transform: rotate(0deg) scale(1.1);
}

.andro-mascot.shy .andro-head {
    transform: translateY(5px);
}

/* 4. TITLE STYLE */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.login-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, #4F46E5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
    color: transparent;
    /* Fallback override */
    margin-top: 10px;
}

/* 5. INPUTS & BUTTONS */
.login-form .form-control {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(5px);
    border: 2px solid transparent !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.login-form .form-control:focus {
    background-color: #fff !important;
    border-color: #4F46E5 !important;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.15) !important;
    transform: translateY(-2px);
}

.login-form .form-control:focus+label {
    font-weight: 700;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4) !important;
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.login-form .btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5) !important;
}

/* 6. SUCCESS OVERLAY */
#login-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#login-success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-icon-anim {
    font-size: 4rem;
    color: #10B981;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* 7. DARK MODE OVERRIDES */
body[data-theme="dark"] #login-page {
    background: linear-gradient(-45deg, #1e1b4b, #312e81, #111827, #0f172a) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 20s ease infinite !important;
}

body[data-theme="dark"] .login-wrapper {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="dark"] .login-form .form-control {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

body[data-theme="dark"] .andro-head {
    background: #6366f1;
}

body[data-theme="dark"] .andro-hand {
    background: #4f46e5;
}

body[data-theme="dark"] #login-success-overlay {
    background: rgba(30, 41, 59, 0.95);
}

/* === CUSTOM GOOGLE BUTTON STYLES === */
.btn-social-google {
    width: 100%;
    max-width: 280px;
    margin: 0 auto 15px;
    padding: 12px 24px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-social-google:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-social-google:active {
    background: #f1f3f4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.btn-social-google svg {
    flex-shrink: 0;
}

.btn-social-google span {
    white-space: nowrap;
}

/* Dark mode styles for Google button */
body[data-theme="dark"] .btn-social-google {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8eaed;
}

body[data-theme="dark"] .btn-social-google:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

body[data-theme="dark"] .btn-social-google:active {
    background: rgba(255, 255, 255, 0.08);
}