/* ============ ULTRA PREMIUM LOGIN MODAL ============ */
.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalBackdropFade 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 20px;
}

@keyframes modalBackdropFade {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(20px) saturate(180%); }
}

.login-modal.closing { animation: modalBackdropFadeOut 0.35s ease forwards; }
@keyframes modalBackdropFadeOut { to { opacity: 0; backdrop-filter: blur(0px); } }

.login-container {
    background: linear-gradient(165deg, rgba(15, 10, 30, 0.95) 0%, rgba(8, 6, 18, 0.97) 50%, rgba(12, 8, 25, 0.95) 100%);
    backdrop-filter: blur(60px) saturate(160%);
    -webkit-backdrop-filter: blur(60px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 0;
    max-width: 380px;
    width: 100%;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(143, 0, 255, 0.05);
    animation: modalSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: conic-gradient(from 0deg, rgba(143,0,255,0.3), rgba(0,240,255,0.2), rgba(255,0,168,0.15), rgba(0,255,136,0.1), rgba(143,0,255,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 6s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-container:hover::before {
    opacity: 1;
}

@keyframes borderRotate {
    to { filter: hue-rotate(360deg); }
}

.login-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.login-glow-orb-1 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(143, 0, 255, 0.18), transparent 70%);
    top: -60px; right: -60px;
    animation: orbFloat1 8s ease-in-out infinite;
}
.login-glow-orb-2 {
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
    bottom: -40px; left: -40px;
    animation: orbFloat2 10s ease-in-out infinite;
}
.login-glow-orb-3 {
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255, 0, 168, 0.1), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    33% { transform: translate(-30px, 20px) scale(1.15); opacity: 1; }
    66% { transform: translate(10px, -10px) scale(0.9); opacity: 0.6; }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33% { transform: translate(20px, -25px) scale(1.2); opacity: 1; }
    66% { transform: translate(-15px, 10px) scale(0.85); opacity: 0.5; }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.7; }
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.94); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}
.login-modal.closing .login-container {
    animation: modalSlideDown 0.35s ease forwards;
}
@keyframes modalSlideDown { to { opacity: 0; transform: translateY(30px) scale(0.94); filter: blur(8px); } }

/* ---- HEADER ---- */
.login-header {
    padding: 24px 28px 14px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ---- LOGO ---- */
.login-logo {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f00ff, #6600cc, #00f0ff);
    background-size: 300% 300%;
    animation: logoGradient 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    padding: 3px;
    box-shadow: 0 8px 30px rgba(143, 0, 255, 0.35), 0 0 60px rgba(143, 0, 255, 0.12);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}
.login-logo-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-logo:hover {
    transform: scale(1.12);
    box-shadow: 0 12px 40px rgba(143, 0, 255, 0.5), 0 0 80px rgba(143, 0, 255, 0.2);
}
.login-logo:hover .login-logo-img { transform: scale(1.05); }

@keyframes logoGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-logo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, rgba(143, 0, 255, 0.5), rgba(0, 240, 255, 0.4), rgba(255, 0, 168, 0.3), rgba(0, 240, 255, 0.4), rgba(143, 0, 255, 0.5)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 4s linear infinite;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; font-weight: 800;
    margin-bottom: 3px; letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 50%, #c4b5fd 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
    background-size: 200% 100%;
}
@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.login-header p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px; font-family: 'Inter', sans-serif;
    font-weight: 400; letter-spacing: 0.2px;
}

/* ---- CLOSE BUTTON ---- */
.login-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    font-size: 12px; z-index: 10;
}
.login-close:hover {
    background: rgba(255, 70, 70, 0.15);
    border-color: rgba(255, 70, 70, 0.3);
    color: #ff6b6b;
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 0 20px rgba(255, 70, 70, 0.15);
}

/* ---- BODY ---- */
.login-body {
    padding: 0 28px 22px;
    position: relative;
    z-index: 1;
}

/* ---- TABS ---- */
.login-tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px;
    border-radius: 12px;
    border: none;
    position: relative;
}

.login-tab-indicator {
    position: absolute;
    top: 3px; left: 3px;
    width: calc(50% - 4.5px);
    height: calc(100% - 6px);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(143, 0, 255, 0.3), rgba(0, 240, 255, 0.12));
    box-shadow: 0 2px 15px rgba(143, 0, 255, 0.2), 0 0 0 1px rgba(143, 0, 255, 0.2) inset, 0 0 30px rgba(143, 0, 255, 0.08) inset;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
    pointer-events: none;
}
.login-tab-indicator.right {
    transform: translateX(calc(100% + 3px));
}

.login-tab {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Outfit', sans-serif;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.45s ease;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 2;
}
.login-tab.active {
    color: white;
    text-shadow: 0 0 20px rgba(143, 0, 255, 0.5);
}
.login-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

/* ---- TAB CONTENT CROSSFADE ---- */
.login-content-wrapper {
    position: relative;
}

.login-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0; left: 0; width: 100%;
    transform: translateY(8px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s 0.4s;
    pointer-events: none;
}
.login-content.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0) translateX(0);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s 0s;
    pointer-events: auto;
}

/* ---- SOCIAL BUTTONS ---- */
.social-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 0;
}

.login-modal .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.login-modal .social-btn span { position: relative; z-index: 1; }
.login-modal .social-btn i {
    font-size: 16px;
    position: relative; z-index: 1;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}
.login-modal .social-btn svg {
    flex-shrink: 0;
    position: relative; z-index: 1;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-modal .social-btn:hover {
    transform: translateY(-2px);
}
.login-modal .social-btn:hover i,
.login-modal .social-btn:hover svg {
    transform: scale(1.15);
}
.login-modal .social-btn:active {
    transform: translateY(0) scale(0.97);
    transition: transform 0.1s;
}

.login-modal .social-btn.google:hover {
    border-color: rgba(66, 133, 244, 0.4);
    background: rgba(66, 133, 244, 0.08);
    color: #fff;
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.12);
}
.login-modal .social-btn.github:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.04);
}
.login-modal .social-btn.discord i { color: #5865F2; }
.login-modal .social-btn.discord:hover {
    border-color: rgba(88, 101, 242, 0.4);
    background: rgba(88, 101, 242, 0.08);
    color: #fff;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.12);
}

/* ---- DIVIDER ---- */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px; font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    position: relative;
}
.login-divider span {
    flex-shrink: 0;
    padding: 0 2px;
    background: transparent;
    position: relative;
    z-index: 1;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    position: relative;
}
.login-divider::before {
    background: linear-gradient(90deg, transparent 0%, rgba(143, 0, 255, 0.4) 50%, rgba(143, 0, 255, 0.5) 100%);
    box-shadow: 0 0 8px rgba(143, 0, 255, 0.15);
}
.login-divider::after {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.5) 0%, rgba(0, 240, 255, 0.4) 50%, transparent 100%);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

/* ---- FORM FIELDS ---- */
.login-modal .form-group {
    margin-bottom: 12px;
    position: relative;
}
.login-modal .form-group label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px; font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-modal .form-group:focus-within label {
    color: rgba(143, 0, 255, 0.8);
}
.login-modal .form-group label i {
    font-size: 11px;
    color: rgba(143, 0, 255, 0.5);
    margin-right: 5px;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
}
.login-modal .form-group:focus-within label i {
    color: rgba(143, 0, 255, 0.9);
    transform: scale(1.1);
}

.login-modal .form-input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
}
.login-modal .form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}
.login-modal .form-input:focus {
    border-color: rgba(143, 0, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(143, 0, 255, 0.08), 0 0 20px rgba(143, 0, 255, 0.05);
    transform: translateY(-1px);
}
.login-modal .form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

/* ---- PASSWORD ---- */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrap .form-input { padding-right: 42px; }
.pw-toggle {
    position: absolute;
    right: 12px;
    background: none; border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer; font-size: 13px;
    padding: 4px;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}
.pw-toggle:hover {
    color: rgba(143, 0, 255, 0.8);
    transform: scale(1.15);
}

/* ---- VERIFICATION CODE ---- */
.verify-input-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.verify-input-wrap .form-input {
    flex: 1;
    letter-spacing: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Inter', monospace;
    padding: 11px 10px;
}
.verify-input-wrap .form-input::placeholder {
    letter-spacing: 0px;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
}
.verify-btn {
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(143, 0, 255, 0.25), rgba(0, 240, 255, 0.15));
    border: 1px solid rgba(143, 0, 255, 0.25);
    border-radius: 10px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.verify-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(143, 0, 255, 0.4), rgba(0, 240, 255, 0.25));
    box-shadow: 0 4px 20px rgba(143, 0, 255, 0.2);
    transform: translateY(-1px);
    border-color: rgba(143, 0, 255, 0.4);
}
.verify-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.verify-status {
    display: block;
    margin-top: 6px;
    font-size: 11px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    min-height: 16px;
}

/* ---- FORM OPTIONS ---- */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 11px;
}

/* ---- PREMIUM REMEMBER ME TOGGLE ---- */
.remember-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.remember-toggle input {
    display: none;
}
.toggle-track {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toggle-thumb {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-check-icon {
    font-size: 8px;
    color: transparent;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0);
}
.toggle-glow {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: radial-gradient(ellipse, rgba(143, 0, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.remember-toggle:hover .toggle-track {
    border-color: rgba(143, 0, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}
.remember-toggle input:checked ~ .toggle-track {
    background: linear-gradient(135deg, rgba(143, 0, 255, 0.35), rgba(0, 240, 255, 0.2));
    border-color: rgba(143, 0, 255, 0.5);
    box-shadow: 0 0 20px rgba(143, 0, 255, 0.15), 0 0 40px rgba(143, 0, 255, 0.05);
}
.remember-toggle input:checked ~ .toggle-track .toggle-thumb {
    transform: translateX(18px);
    background: linear-gradient(135deg, #8f00ff, #a855f7);
    box-shadow: 0 2px 10px rgba(143, 0, 255, 0.4), 0 0 20px rgba(143, 0, 255, 0.15);
}
.remember-toggle input:checked ~ .toggle-track .toggle-check-icon {
    color: white;
    transform: scale(1);
}
.remember-toggle input:checked ~ .toggle-track .toggle-glow {
    opacity: 1;
}
.toggle-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}
.remember-toggle:hover .toggle-label {
    color: rgba(255, 255, 255, 0.7);
}
.remember-toggle input:checked ~ .toggle-label {
    color: rgba(255, 255, 255, 0.8);
}
.form-link {
    color: rgba(143, 0, 255, 0.8);
    text-decoration: none;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
}
.form-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, #8f00ff, #00f0ff);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-link:hover {
    color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.form-link:hover::after { width: 100%; }

/* ---- SUBMIT BUTTON ---- */
.login-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8f00ff, #6b00cc, #00c8ff);
    background-size: 200% 200%;
    animation: submitGradient 3s ease infinite;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                letter-spacing 0.5s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(143, 0, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
@keyframes submitGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.login-submit-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #00f0ff, #8f00ff, #ff006e);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: submitGradient 3s ease infinite;
}
.login-submit::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.05), transparent);
    animation: submitSweep 4s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.login-submit:hover::after { opacity: 1; }
@keyframes submitSweep { to { transform: rotate(360deg); } }

.login-submit:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 40px rgba(143, 0, 255, 0.45), 0 0 60px rgba(143, 0, 255, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    letter-spacing: 1px;
}
.login-submit:hover .login-submit-bg { opacity: 1; }
.login-submit:active {
    transform: translateY(-1px) scale(0.99);
    transition: transform 0.1s;
}
.login-submit i,
.login-submit span { position: relative; z-index: 1; }
.login-submit i {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-submit:hover i { transform: translateX(3px); }
.login-submit:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none;
}

/* ---- FOOTER ---- */
.login-footer {
    text-align: center;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px; font-weight: 500;
}
.login-footer a {
    color: rgba(143, 0, 255, 0.85);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    position: relative;
}
.login-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: linear-gradient(90deg, #8f00ff, #00f0ff);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-footer a:hover {
    color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.login-footer a:hover::after { width: 100%; }

/* ---- SECURITY BADGE ---- */
.login-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.02), rgba(0, 255, 136, 0.04));
    border-top: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 500; letter-spacing: 0.5px;
    position: relative; z-index: 1;
    transition: color 0.3s ease;
}
.login-secure-badge:hover { color: rgba(0, 255, 136, 0.6); }
.login-secure-badge i {
    color: rgba(0, 255, 136, 0.45);
    font-size: 10px;
    animation: securityPulse 2s ease-in-out infinite;
}
@keyframes securityPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ---- PARTICLES ---- */
.login-particles-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ---- NOTIFICATION ---- */
@keyframes notificationSlideIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes notificationSlideOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* ---- LOGGED IN BANNER ---- */
.logged-in-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(143, 0, 255, 0.08), rgba(0, 240, 255, 0.04));
    border: 1px solid rgba(143, 0, 255, 0.15);
    border-radius: 14px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    animation: bannerGlow 3s ease-in-out infinite;
}
@keyframes bannerGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(143, 0, 255, 0.05); }
    50% { box-shadow: 0 0 25px rgba(143, 0, 255, 0.12), 0 0 50px rgba(143, 0, 255, 0.04); }
}
.logged-in-banner-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(143, 0, 255, 0.06), transparent 70%);
    pointer-events: none;
}
.logged-in-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.logged-in-icon svg {
    width: 18px;
    height: 18px;
}
.logged-in-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.logged-in-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.logged-in-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logged-in-platform {
    position: relative;
    z-index: 1;
}
.logged-in-via {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* ---- LOGGED IN ACTIONS ---- */
.logged-in-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.logged-in-continue-btn {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #8f00ff, #6b00cc, #00c8ff);
    background-size: 200% 200%;
    animation: submitGradient 3s ease infinite;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(143, 0, 255, 0.3);
}
.logged-in-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(143, 0, 255, 0.4);
}
.logged-in-switch-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}
.logged-in-switch-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

/* ---- CONNECT HINT ---- */
.logged-in-connect-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}
.logged-in-connect-hint i {
    color: rgba(0, 240, 255, 0.5);
    font-size: 12px;
    flex-shrink: 0;
}
.connect-profile-link {
    color: rgba(143, 0, 255, 0.85);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.connect-profile-link:hover {
    color: #00f0ff;
}

/* ---- PLATFORM HINT ---- */
.login-platform-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: center;
    justify-content: center;
}
.login-platform-hint i {
    color: rgba(143, 0, 255, 0.4);
    font-size: 10px;
}

/* ---- LOGIN FORM AREA ---- */
.login-form-area {
    position: relative;
    z-index: 1;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .login-container { max-width: 95%; border-radius: 20px; }
    .login-header { padding: 24px 24px 16px; }
    .login-header h2 { font-size: 22px; }
    .login-body { padding: 0 24px 22px; }
    .login-logo { width: 52px; height: 52px; }
    .social-login-grid { gap: 8px; }
    .login-modal .social-btn { padding: 10px 6px; font-size: 11px; }
    .login-modal .social-btn i { font-size: 15px; }
}
@media (max-width: 400px) {
    .login-container { max-width: 100%; border-radius: 16px; }
    .login-header { padding: 20px 18px 14px; }
    .login-body { padding: 0 18px 18px; }
    .social-login-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .login-modal .social-btn span { display: none; }
    .login-modal .social-btn { padding: 12px; justify-content: center; }
    .logged-in-actions { flex-direction: column; }
    .logged-in-banner { padding: 12px 14px; }
    .logged-in-name { font-size: 13px; }
}
