/* ===== Login Page ===== */
.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* --- Left Panel: Immersive Gradient --- */
.login-left {
    flex: 1.1;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0d03 30%, #03101c 70%, #0a0a0f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 50px;
}

/* Animated mesh gradient overlay */
.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(240, 116, 0, 0.15), transparent),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(0, 180, 255, 0.12), transparent),
        radial-gradient(ellipse 50% 60% at 50% 80%, rgba(240, 116, 0, 0.08), transparent);
    animation: pulse-glow 8s ease-in-out infinite;
}

/* Grid pattern overlay */
.login-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
}

/* Floating orbs */
.login-left-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.shape-1 {
    width: 350px;
    height: 350px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(240, 116, 0, 0.12), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 280px;
    height: 280px;
    bottom: 5%;
    right: -80px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.1), transparent 70%);
    animation: float 10s ease-in-out infinite 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 35%;
    left: 15%;
    background: radial-gradient(circle, rgba(240, 116, 0, 0.08), transparent 70%);
    animation: float 7s ease-in-out infinite 1s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 25%;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.06), transparent 70%);
    animation: float 9s ease-in-out infinite 3s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    bottom: 25%;
    left: 40%;
    background: radial-gradient(circle, rgba(255, 154, 60, 0.06), transparent 70%);
    animation: float 11s ease-in-out infinite 1.5s;
}

/* Orbiting particles */
.login-orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 1;
}

.orbit-dot {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.orbit-dot-1 {
    --orbit-radius: 220px;
    width: 7px;
    height: 7px;
    background: rgba(240, 116, 0, 0.9);
    box-shadow: 0 0 14px 4px rgba(240, 116, 0, 0.6), 0 0 40px 8px rgba(240, 116, 0, 0.2);
    animation: orbit 18s linear infinite;
}

.orbit-dot-2 {
    --orbit-radius: 160px;
    width: 6px;
    height: 6px;
    background: rgba(0, 180, 255, 0.85);
    box-shadow: 0 0 12px 4px rgba(0, 180, 255, 0.5), 0 0 35px 6px rgba(0, 180, 255, 0.15);
    animation: orbit 14s linear infinite reverse;
}

.orbit-dot-3 {
    --orbit-radius: 250px;
    width: 5px;
    height: 5px;
    background: rgba(255, 154, 60, 0.8);
    box-shadow: 0 0 10px 3px rgba(255, 154, 60, 0.5), 0 0 30px 6px rgba(255, 154, 60, 0.15);
    animation: orbit 22s linear infinite;
}

/* Advance logo - top of card */
.login-logo-adv {
    position: absolute;
    top: 28px;
    left: 36px;
    width: 120px;
    z-index: 3;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.15));
}

.login-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 560px;
    width: 100%;
    animation: slideUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Monster logo with float animation */
.login-logo-monster {
    width: 200px;
    filter: drop-shadow(0 4px 20px rgba(240, 116, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

.login-left-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.75);
    outline: none;
}

.login-left-content h1 .text-orange {
    background: linear-gradient(135deg, #f07400, #ff9a3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.login-left-content > p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 520px;
    margin: 0;
}

/* Monster AI section */
.login-left-ai {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-ai-logo {
    width: 120px;
    filter: invert(1) hue-rotate(175deg) saturate(1.3) drop-shadow(0 4px 16px rgba(240, 116, 0, 0.25));
}

.login-left-ai p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 460px;
    margin: 0;
    font-style: italic;
}

/* Decorative line - bottom */
.login-left-line {
    width: 60px;
    height: 3px;
    background: var(--primary-gradient-tight);
    border-radius: 2px;
    margin-top: 4px;
}

/* --- Right Panel: Form --- */
.login-right {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient accent on right panel */
.login-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 70%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, transparent, #F07400 30%, #00b4ff 70%, transparent);
    border-radius: 1px;
}

/* Background decoration */
.login-right::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(240, 116, 0, 0.03), transparent 60%);
    pointer-events: none;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.login-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-form-logo {
    width: 200px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.login-form-logo:hover {
    transform: scale(1.05);
}

.login-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.login-form-header .login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.login-form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    width: 100%;
}

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.7;
    z-index: 1;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--primary-color);
    opacity: 1;
}

.login-input-wrapper:has(.form-input:not(:placeholder-shown)) .login-input-icon {
    color: var(--text-primary);
    opacity: 0.6;
}

.login-input-with-icon {
    padding-left: 46px !important;
}

/* Email suggestions dropdown */
.email-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 100;
    animation: slideIn 0.15s ease;
    backdrop-filter: blur(20px);
}

.email-suggestion-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-primary);
    transition: background 0.15s;
}

.email-suggestion-item:hover {
    background: var(--bg-glass-hover);
}

.email-suggestion-select {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.email-suggestion-select span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-suggestion-select svg {
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.15s;
}

.email-suggestion-item:hover .email-suggestion-select svg {
    color: var(--primary-color);
}

.email-suggestion-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.15s;
    flex-shrink: 0;
}

.email-suggestion-item:hover .email-suggestion-remove {
    opacity: 1;
}

.email-suggestion-remove:hover {
    background: rgba(220, 50, 50, 0.15);
    color: #dc3232;
}

.email-suggestion-item + .email-suggestion-item {
    border-top: 1px solid var(--border-color);
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-forgot-link {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    display: block;
}

.login-forgot-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.login-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-form-footer small {
    color: var(--text-secondary);
    font-size: 11px;
    max-width: 250px;
    opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .login-left {
        flex: none;
        min-height: 280px;
        padding: 40px;
    }

    .login-page {
        flex-direction: column;
    }

    .login-left-content h1 {
        font-size: 24px;
    }

    .login-orbit-container {
        display: none;
    }

    .login-left-ai {
        display: none;
    }

    .login-logo-adv {
        width: 90px;
        top: 20px;
        left: 24px;
    }
}

@media (max-width: 480px) {
    .login-left {
        min-height: 220px;
        padding: 30px 20px;
    }

    .login-left-content > p {
        display: none;
    }

    .login-left-line {
        display: none;
    }

    .login-logo-adv {
        width: 70px;
        top: 16px;
        left: 16px;
    }

    .login-logo-monster {
        width: 140px;
    }

    .login-left-content h1 {
        font-size: 20px;
    }

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