/* --- NueroNova Premium Auth Pages (v3 Design) --- */

body {
    background-color: var(--bg-app);
    color: var(--fg-primary);
    font-family: var(--font-sans);
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
}

.auth-split {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: var(--bg-app);
}

/* --- Left Panel (Branding / Ambient) --- */
.auth-left {
    display: none; /* Hidden on mobile */
    width: 50%;
    position: relative;
    background-color: #03060a;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

@media (min-width: 992px) {
    .auth-left {
        display: flex;
    }
}

/* Subtle dot-grid ambient background */
.auth-ambient {
    position: absolute;
    inset: 0;
    background-color: #03060a;
    background-image: 
        radial-gradient(rgba(230, 237, 243, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

.auth-ambient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 10%, #03060a 90%);
}

.auth-brand {
    position: relative;
    z-index: 2;
    max-width: 440px;
    padding: 40px;
    text-align: center;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--fg-on-accent);
    border-radius: 14px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 24px;
}

.auth-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    margin-bottom: 12px;
    color: var(--fg-primary);
}

.auth-subtitle {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--fg-secondary);
    margin-bottom: 40px;
}

.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--fg-muted);
    font-size: var(--text-xs);
    font-weight: 500;
}

.auth-trust .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--border-highlight);
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Right Panel (Form) --- */
.auth-right {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--bg-app);
    padding: 32px;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .auth-right {
        width: 50%;
    }
}

.auth-top-links {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: var(--text-xs);
    color: var(--fg-muted);
}

.auth-top-links a {
    color: var(--fg-primary);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    margin-left: 4px;
    transition: color var(--dur-fast);
}

.auth-top-links a:hover {
    color: var(--fg-secondary);
}

.auth-container {
    width: 100%;
    max-width: 360px;
    animation: auth-fade-in 0.4s var(--ease-out);
}

@keyframes auth-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    margin-bottom: 32px;
}

.auth-form-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--fg-primary);
    margin: 0 0 6px 0;
}

.auth-form-desc {
    color: var(--fg-secondary);
    font-size: var(--text-sm);
    margin: 0;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--fg-primary);
    font-size: var(--text-xs);
    font-weight: 500;
}

/* Forgot password link alignment */
.auth-pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.auth-forgot {
    font-size: var(--text-xs);
    color: var(--fg-secondary);
    text-decoration: none;
    transition: color var(--dur-fast);
}

.auth-forgot:hover {
    color: var(--fg-primary);
}

/* Remember option / custom placement */
.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

/* Submit Button Override for premium look */
.auth-submit {
    width: 100%;
    height: 40px;
    background: var(--accent);
    color: var(--fg-on-accent);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--dur-fast) var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.auth-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

/* Divider Styles */
.auth-divider {
    position: relative;
    margin: 28px 0;
    text-align: center;
}

.auth-divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-subtle);
    z-index: 1;
}

.auth-divider-text {
    position: relative;
    z-index: 2;
    background: var(--bg-app);
    padding: 0 10px;
    font-size: 11px;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* SSO grid */
.auth-sso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--fg-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: all var(--dur-fast);
}

.auth-sso-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-highlight);
}

/* Error/Alert Component */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    margin-bottom: 20px;
    font-weight: 500;
}

.auth-alert.error {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid rgba(248, 81, 73, 0.15);
}
