:root {
    --nexus-primary: var(--nexus-neon);
    --nexus-card-bg: var(--nexus-card);
    --nexus-border: rgba(255, 255, 255, 0.08);
    --nexus-text-muted: #888888;
    --nexus-text-bright: #e2e8f0;
}

.login-page-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--nexus-bg);
    color: white;
    font-family: 'Inter', sans-serif;
}

.mesh-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--nexus-card-bg);
    border: 1px solid var(--nexus-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    z-index: 10;
    text-align: center;
}

.auth-header { margin-bottom: 24px; }
.logo-box { margin-bottom: 12px; color: white; }
.app-name { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.app-name span { color: var(--nexus-primary); }
.auth-subtitle { font-size: 1.1rem; color: #bbb; margin-top: 8px; }

.btn-google-auth {
    width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px;
    padding: 12px; background: transparent; border: 1px solid #3d424a; border-radius: 12px;
    color: var(--nexus-text-bright); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}

.btn-google-auth:hover { background: rgba(255,255,255,0.05); }

.auth-divider { display: flex; align-items: center; margin: 20px 0; color: var(--nexus-text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #2d3239; }
.auth-divider span { padding: 0 12px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field-group { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 16px; color: var(--nexus-text-muted); pointer-events: none; z-index: 5; }

.field-input {
    width: 100% !important; padding: 14px 16px 14px 48px !important;
    background: #15181c !important; border: 1px solid #2d3239 !important;
    border-radius: 12px !important; color: white !important; font-size: 0.9rem !important;
    outline: none !important; transition: border-color 0.2s;
}

.field-input:focus { border-color: var(--nexus-primary) !important; }

.toggle-visibility { position: absolute; right: 16px; background: none; border: none; color: var(--nexus-text-muted); cursor: pointer; padding: 4px; z-index: 5; }

.auth-options {
    display: flex;
    justify-content: flex-start;
    padding: 0 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--nexus-text-muted);
    user-select: none;
}

.remember-me input {
    accent-color: var(--nexus-primary);
    width: 14px;
    height: 14px;
}

.btn-submit-auth {
    width: 100%; padding: 14px; background: var(--nexus-primary); border: none; border-radius: 12px;
    color: #000; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
    margin-top: 8px;
}

.btn-submit-auth:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(68, 255, 119, 0.2); }

.auth-footer { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.auth-link { color: var(--nexus-text-muted); text-decoration: none; font-size: 0.85rem; }
.auth-switch { color: var(--nexus-text-muted); font-size: 0.9rem; margin: 0; }
.auth-switch a { color: white; text-decoration: none; font-weight: 600; }
.auth-switch a:hover { color: var(--nexus-primary); }

.auth-legal { margin-top: 32px; font-size: 0.7rem; color: #444; line-height: 1.4; }
.auth-legal a { color: #555; }

.auth-validation { color: #ff4d4d; font-size: 0.75rem; text-align: left; margin-top: 4px; }
.auth-error { color: #ff4d4d; font-size: 0.85rem; text-align: center; }

.auth-loader { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,0.1); border-radius: 50%; border-top-color: #000; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
