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

:root {
    --primary-gradient: linear-gradient(135deg, #7c3aed, #d946ef);
    --secondary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Background Animated Blobs (Soft Pastels) */
.bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #c084fc;
    top: -100px;
    left: -100px;
    animation-duration: 20s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #f472b6;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 28s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #93c5fd;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    animation-duration: 35s;
    opacity: 0.2;
}

@keyframes floatBlob {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(60px, -40px) scale(1.05) rotate(120deg);
    }
    66% {
        transform: translate(-40px, 50px) scale(0.95) rotate(240deg);
    }
    100% {
        transform: translate(0px, 0px) scale(1) rotate(360deg);
    }
}

/* Login Layout Wrapper */
.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light Glassmorphic Card */
.login-card {
    width: 100%;
    height: 580px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08), 
                0 0 80px rgba(124, 58, 237, 0.03);
    position: relative;
    transition: all 0.5s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(130deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Left Panel - Brand Display */
.login-left {
    width: 45%;
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    border-right: 1px solid var(--glass-border);
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 3;
}

.brand img {
    filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.15));
    transition: transform 0.5s ease;
}

.brand img:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Animated Equalizer Bars - Glowing Pastel */
.bars {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    height: 280px;
    padding-bottom: 20px;
    position: relative;
    z-index: 3;
}

.bar {
    width: 28px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--glow-color);
    background: var(--bar-gradient);
    transition: all 0.3s ease;
    animation: waveBar 4s infinite ease-in-out;
}

.bar-1 {
    height: 140px;
    --bar-gradient: linear-gradient(to top, #7c3aed, #c084fc);
    --glow-color: rgba(124, 58, 237, 0.15);
    animation-delay: 0.1s;
    animation-duration: 3.5s;
}

.bar-2 {
    height: 190px;
    --bar-gradient: linear-gradient(to top, #c026d3, #f472b6);
    --glow-color: rgba(192, 38, 211, 0.15);
    animation-delay: 0.6s;
    animation-duration: 4.2s;
}

.bar-3 {
    height: 240px;
    --bar-gradient: linear-gradient(to top, #db2777, #fda4af);
    --glow-color: rgba(219, 39, 119, 0.15);
    animation-delay: 0.3s;
    animation-duration: 3.8s;
}

.bar-4 {
    height: 180px;
    --bar-gradient: linear-gradient(to top, #2563eb, #93c5fd);
    --glow-color: rgba(37, 99, 235, 0.15);
    animation-delay: 0.8s;
    animation-duration: 4.5s;
}

@keyframes waveBar {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.7) translateY(10px);
        opacity: 0.9;
    }
}

/* Right Panel - Form Fields */
.login-right {
    width: 55%;
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.login-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.signup-link {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 6px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
}

.signup-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.login-form h4 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.login-form .text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Form Controls and Input styling (Light Premium) */
.form-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    color: var(--text-primary) !important;
    height: 48px;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    background: #ffffff !important;
    border-color: #7c3aed !important;
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.15) !important;
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8 !important;
}

/* Password Toggle and Input Group */
.input-group {
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    border-left: none !important;
    color: var(--text-secondary) !important;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group-text:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

/* Validation Danger Message */
.text-danger {
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
}

/* Action button - Premium Login */
.btn-login {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    height: 50px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none !important;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4), 
                0 0 20px rgba(217, 70, 239, 0.2);
}

.btn-login:active {
    transform: translateY(1px);
}

/* Alerts container styling */
.alert {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px !important;
    margin-top: 25px;
    padding: 12px 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.alert-outline-success {
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #16a34a !important;
}

.alert-outline-danger {
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #dc2626 !important;
}

.alert .btn-close {
    opacity: 0.5;
}

.alert .btn-close:hover {
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .login-card {
        height: auto;
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }

    .login-left {
        width: 100%;
        padding: 40px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        flex-direction: row;
        align-items: center;
    }

    .bars {
        height: 80px;
        padding-bottom: 0;
        gap: 12px;
    }

    .bar {
        width: 14px;
    }

    .bar-1 { height: 40px; }
    .bar-2 { height: 60px; }
    .bar-3 { height: 75px; }
    .bar-4 { height: 55px; }

    .login-right {
        width: 100%;
        padding: 40px;
    }
}

@media (max-width: 576px) {
    body {
        overflow-y: auto;
        align-items: flex-start;
        padding: 20px 0;
    }

    .login-wrapper {
        padding: 10px;
    }

    .login-left {
        padding: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .bars {
        display: none;
    }

    .login-right {
        padding: 30px 20px;
    }
}