:root {
    --blue: #3b82f6; 
    --nav-bg: #0f172a;
    --text-gray: #94a3b8;
}

.login-card-container {
    display: flex;
    position: relative; 
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, var(--nav-bg) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    max-width: 1200px;
    height: 650px;
    margin: 60px auto;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

#auth-container {
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.portal-corner {
    position: absolute;
    top: 30px;
    left: calc(50% + 30px); 
    z-index: 100;
    background: rgba(88, 101, 242, 0.2);
    padding: 6px 14px;
    border-radius: 12px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(88, 101, 242, 0.3);
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    overflow: hidden;
}

.portal-corner::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: tagShine 5s infinite;
}

.register-mode .portal-corner {
    left: 25px;
}

.login-form-side, .login-info-side {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.login-form-side { left: 0; background: rgba(0, 0, 0, 0.2); z-index: 5; }
.login-info-side { left: 50%; background: radial-gradient(circle at center, rgba(88, 101, 242, 0.12), transparent); text-align: right; z-index: 1; }

.register-mode .login-form-side { left: 50%; background: rgba(0, 0, 0, 0.1); }
.register-mode .login-info-side { left: 0; text-align: left; }

.glass-title { font-size: 2.8rem; font-weight: 900; color: white; margin-bottom: 15px; line-height: 1.1; }
.glass-text { color: var(--text-gray); font-size: 1rem; line-height: 1.6; max-width: 350px; transition: margin 0.8s ease; }

.login-card-container:not(.register-mode) .login-info-side .glass-text { margin-left: auto; margin-right: 0; }
.register-mode .login-info-side .glass-text { margin-left: 0; margin-right: auto; }

.input-group { margin-bottom: 20px; text-align: left; }
.input-group label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; text-transform: uppercase; }

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: white;
    transition: 0.3s;
}

.minimal-glow-btn {
    width: 100%;
    padding: 16px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.minimal-glow-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(88, 101, 242, 0.2);
}

#switch-btn {
    color: var(--blue);
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

#switch-btn:hover {
    color: white;
}

.highlight { color: var(--blue); font-weight: 800; }
.hidden { display: none !important; }

@keyframes tagShine {
    0% { left: -100%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

@media (max-width: 1w50px) {
    .login-card-container { height: auto; flex-direction: column; margin: 20px; border-radius: 30px; }
    .login-form-side, .login-info-side { position: relative; width: 100%; left: 0 !important; padding: 40px 25px; text-align: center !important; }
    .glass-title { font-size: 2rem; }
    .glass-text { margin: 0 auto; }
    .portal-corner { position: relative; margin: 0 auto 20px; display: inline-block; left: auto !important; }
}