/* Login Page - MetaVirta Premium Dark Theme (Compact Version) */
/* Relies on ../css/styles.css for :root variables */

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    /* Inherit global radial if visible, or re-apply if needed, but for uniformity we rely on global or same pattern */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 69, 0, 0.05), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 183, 0, 0.05), transparent 40%);
    color: var(--text-main);
}

.login-split-container {
    display: flex;
    height: 100%;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* --- LEFT SIDE: BRAND VISUAL --- */
.login-brand-section {
    width: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 30px;
    background: radial-gradient(circle at 30% 50%, rgba(255, 69, 0, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(5, 5, 5, 1), transparent 50%);
    border-right: 1px solid var(--glass-border);
}

/* Glass Card */
.brand-glass-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 75%;
    max-width: 450px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-logo {
    height: 30px;
    filter: drop-shadow(0 0 5px var(--glow-magma));
}

.brand-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: var(--grad-magma);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.welcome-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
    color: white;
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.quote-box {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.quote-icon {
    font-size: 1rem;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.quote-text {
    font-size: 0.9rem;
    font-style: italic;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 8px;
}

.quote-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-align: right;
}

/* Floating Orbs */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: pulseGlow 8s infinite alternate;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: rgba(255, 107, 0, 0.1);
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(255, 183, 0, 0.05);
    bottom: 50px;
    right: 50px;
    animation-delay: 2s;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* --- RIGHT SIDE: FORM --- */
.login-form-section {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    /* Deep black */
    padding: 20px;
    position: relative;
}

.login-form-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.03), transparent 30%);
    pointer-events: none;
}

.form-wrapper {
    width: 100%;
    max-width: 380px;
    /* Reduced width */
    z-index: 5;
}

#form-title {
    font-size: 1.8rem;
    /* Reduced */
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.form-wrapper p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    /* Reduced */
}

/* Social Buttons */
.social-login-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced */
}

.btn-google {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px;
    /* Reduced padding */
    border-radius: 6px;
    font-size: 0.85rem;
    /* Reduced font */
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-google:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-google img {
    height: 16px;
    /* Reduced icon */
}

/* Divider */
.divider {
    margin: 20px 0;
    /* Reduced margin */
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: #000;
    padding: 0 10px;
    color: var(--text-muted);
    position: relative;
    font-size: 0.75rem;
    /* Reduced font */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Inputs */
.form-group {
    margin-bottom: 15px;
    /* Reduced space */
    position: relative;
}

.form-group input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    /* Reduced padding */
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    /* Reduced font */
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 42px;
    /* Fixed smaller height */
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.form-group input:focus {
    border-color: var(--accent-orange);
    background: rgba(255, 107, 0, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    /* Reduced */
    color: var(--text-muted);
    font-size: 0.8rem;
    /* Reduced */
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-container input {
    accent-color: var(--accent-orange);
}

.forgot-password {
    color: var(--accent-gold);
    text-decoration: none;
    transition: 0.3s;
}

.forgot-password:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

/* Submit Button */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: white;
    border: none;
    padding: 12px;
    /* Reduced */
    border-radius: 6px;
    font-size: 1rem;
    /* Reduced */
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    filter: brightness(1.1);
}

/* Switch */
.auth-switch {
    margin-top: 20px;
    /* Reduced */
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-switch a {
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .login-brand-section {
        display: none;
    }

    .login-form-section {
        width: 100%;
        padding: 15px;
    }

    .form-wrapper {
        padding: 15px;
    }
}