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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: #050505; /* Black background matching logo */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

/* Background animated elements */
body::before, body::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.15;
    animation: drift 20s infinite alternate ease-in-out;
}

body::before {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, #ff0044 0%, transparent 70%); /* Neon Red */
}

body::after {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, #00d2ff 0%, #6ffb00 70%, transparent 100%); /* Neon Blue and Green */
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.login-split-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Left Pane: Branding */
.login-left-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding-left: 10%;
    margin-top: 250px;
}

.brand-iso {
    width: 600px;
    position: fixed;
    top: 40px;
    left: 40px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    z-index: 10;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    /* Gradient matching the logo colors */
    background: linear-gradient(90deg, #6ffb00, #00d2ff, #ff0044);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.brand-content p {
    font-size: 1.2rem;
    color: #82a39d; /* Muted teal from the logo text */
    line-height: 1.6;
    font-weight: 300;
}

/* Right Pane: Login Form */
.login-right-pane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-glass-card {
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

/* Top border glow line */
.login-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d2ff, #6ffb00, #ff0044);
}

.form-logo {
    display: none; 
}

.card-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.card-header h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #82a39d;
    font-size: 0.95rem;
}

.floating-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.floating-input {
    width: 100%;
    padding: 1.2rem 1rem 1.2rem 3rem;
    font-size: 1rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #82a39d;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
}

/* Fix label overlapping */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -0.8rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: #00d2ff;
    background: #0f1012; /* Match card background to hide border line */
    padding: 0 0.5rem;
    border-radius: 4px;
}

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #82a39d;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #00d2ff;
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #82a39d;
    cursor: pointer;
}

.remember-me input {
    accent-color: #00d2ff;
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: #ff0044;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    text-shadow: 0 0 10px rgba(255, 0, 68, 0.5);
}

.btn-submit-modern {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, #00d2ff, #0066ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4);
    background: linear-gradient(45deg, #00d2ff, #6ffb00);
}

.alert-box {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.alert-box.error {
    background: rgba(255, 0, 68, 0.1);
    color: #ff4d79;
    border: 1px solid rgba(255, 0, 68, 0.2);
}

.alert-box.info {
    background: rgba(0, 210, 255, 0.1);
    color: #66dbff;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

/* Responsiveness */
@media (max-width: 960px) {
    .login-left-pane {
        display: none;
    }
    
    .login-right-pane {
        padding: 1.5rem;
    }
    
    .form-logo {
        display: block;
        width: 320px;
        margin-bottom: 1.5rem;
    }

    .login-glass-card {
        padding: 2.5rem 2rem;
    }
}
