/* ==========================================================================
   NEXUSPLAY LOGIN FRAMEWORK STYLES
   Layout: 460px Auth Inputs off to the side, Majority (1fr) is the NexusPlay gaming section
   Preserves 100% of the original NexusPlay gaming design & colors
   ========================================================================== */

:root {
    --nexus-orange: #ea580c;
    --nexus-orange-hover: #c2410c;
    --nexus-blue-bg: #090f1d;
    --nexus-input-bg: #060a14;
    --nexus-border: rgba(255, 255, 255, 0.12);
    --nexus-border-focus: #f97316;
    --nexus-text: #f8fafc;
    --nexus-text-muted: #94a3b8;
    --nexus-warning-bg: #b45309;
    --nexus-warning-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.nexus-login-body {
    background-color: var(--nexus-blue-bg);
    color: var(--nexus-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Split-Pane Layout: 1fr (majority) gaming section on the left, 460px inputs on the right */
.nexus-login-page {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 460px;
    overflow: hidden;
    background: var(--nexus-blue-bg);
}

/* --------------------------------------------------------------------------
   RIGHT PANE: Auth Inputs Off To The Side (460px)
   -------------------------------------------------------------------------- */
.nexus-auth-side {
    background: #090f1d;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 32px 40px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.nexus-auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.nexus-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.nexus-auth-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nexus-auth-logo .accent {
    color: #f97316;
}

.nexus-back-link {
    color: var(--nexus-text-muted);
    font-size: 12.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.nexus-back-link:hover {
    color: #ffffff;
}

.nexus-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
}

.nexus-heading {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #ffffff;
}

.nexus-subtitle {
    color: var(--nexus-text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Notice Banner (1:1 with Screenshot) */
.nexus-notice-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--nexus-warning-bg);
    color: var(--nexus-warning-text);
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nexus-notice-banner i {
    font-size: 15px;
    flex-shrink: 0;
}

/* Form Styles */
.nexus-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.nexus-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nexus-field label {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}

.nexus-field input {
    width: 100%;
    background: var(--nexus-input-bg);
    border: 1px solid var(--nexus-border);
    border-radius: 4px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.nexus-field input:focus {
    border-color: var(--nexus-border-focus);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.nexus-field input::placeholder {
    color: #475569;
}

.nexus-password-wrapper {
    position: relative;
    width: 100%;
}

.nexus-password-wrapper input {
    padding-right: 42px;
}

.nexus-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--nexus-text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexus-pw-toggle:hover {
    color: #ffffff;
}

/* Orange Login Button (1:1 with Screenshot) */
.btn-nexus-login {
    width: 100%;
    background-color: var(--nexus-orange);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.btn-nexus-login:hover {
    background-color: var(--nexus-orange-hover);
}

.btn-nexus-login:active {
    transform: scale(0.99);
}

/* Divider */
.nexus-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 16px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

.nexus-divider::before,
.nexus-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* OAuth Buttons */
.nexus-oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.nexus-oauth-btn {
    width: 100%;
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nexus-oauth-btn:hover {
    background: #1d273f;
    border-color: rgba(255, 255, 255, 0.25);
}

.nexus-oauth-btn.btn-discord {
    background: #5865F2;
    border-color: #5865F2;
}

.nexus-oauth-btn.btn-discord:hover {
    background: #4752c4;
}

/* Links (1:1 with Screenshot) */
.nexus-auth-links {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--nexus-text-muted);
}

.nexus-auth-links a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.15s ease;
}

.nexus-auth-links a:hover {
    color: #f97316;
}

/* Feedback Msg */
.nexus-feedback {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.nexus-feedback.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    display: block;
}

.nexus-feedback.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    display: block;
}

/* --------------------------------------------------------------------------
   RIGHT PANE: Majority Of The Screen With Original NexusPlay Gaming Texture
   (1fr - takes the entire rest of the display)
   -------------------------------------------------------------------------- */
.nexus-content-majority {
    background: radial-gradient(circle at 40% 50%, #2b180d 0%, #160d06 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 50px;
    text-align: center;
    overflow: hidden;
}

/* Scanline and subtle gaming texture overlay */
.nexus-content-majority::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(234, 88, 12, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.35) 1px, transparent 1px);
    background-size: 28px 28px, 100% 4px;
    opacity: 0.65;
    pointer-events: none;
}

.nexus-majority-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 640px;
}

.nexus-majority-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.nexus-majority-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(234, 88, 12, 0.45));
}

.nexus-majority-brand {
    font-family: 'Press Start 2P', 'Outfit', monospace;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
    text-transform: uppercase;
}

.nexus-majority-brand span.accent {
    color: #f97316;
}

.nexus-majority-tagline {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fed7aa;
    margin-bottom: 36px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.3px;
}

/* Text Information & Feature Highlights */
.nexus-info-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 8px;
    padding: 24px 30px;
    text-align: left;
    backdrop-filter: blur(8px);
    width: 100%;
}

.nexus-info-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nexus-info-title i {
    color: #f97316;
}

.nexus-info-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 18px;
}

.nexus-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nexus-badge {
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.35);
    color: #fed7aa;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nexus-badge i {
    color: #22c55e;
}

.nexus-majority-backlink {
    position: absolute;
    top: 28px;
    left: 36px;
    color: #fed7aa;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nexus-majority-backlink:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 960px) {
    .nexus-login-page {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .nexus-auth-side {
        border-left: none;
        border-right: none;
        padding: 36px 24px;
        min-height: 100vh;
    }

    .nexus-content-majority {
        display: none;
    }
}
