/* Portal giris / kayit katmani — yalnizca dashboard.html (#sa-auth-gate) */

#sa-auth-gate {
    --auth-accent: var(--primary, #2563eb);
    --auth-muted: var(--text-muted, #64748b);
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, var(--bg-app, #f8fafc) 0%, #e2e8f0 100%);
    overflow: auto;
}

#sa-auth-gate[hidden] {
    display: none !important;
}

.sa-auth-gate-panel {
    width: 100%;
    max-width: 460px;
}

.sa-auth-gate-top {
    text-align: center;
    margin-bottom: 20px;
}

.sa-auth-gate-top a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.sa-auth-gate-top a:hover {
    text-decoration: underline;
}

.sa-auth-gate-intro {
    font-size: 0.95rem;
    color: var(--auth-muted);
    margin-bottom: 8px;
}

#sa-auth-gate .modern-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.08));
}

#sa-auth-gate .modern-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color, #cbd5e1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 6px;
    background: var(--bg-app, #f8fafc);
    color: var(--text-main, #0f172a);
}

#sa-auth-gate .modern-input:focus {
    border-color: var(--auth-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#sa-auth-gate .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main, #334155);
}

#sa-auth-gate .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--primary-hover, #1d4ed8) 100%);
    color: var(--text-on-primary, #fff);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

#sa-auth-gate .btn-submit:hover {
    filter: brightness(1.05);
}

#sa-auth-gate .auth-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color, #f1f5f9);
}

#sa-auth-gate .auth-tab {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    color: var(--auth-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

#sa-auth-gate .auth-tab.active {
    color: var(--auth-accent);
    border-bottom-color: var(--auth-accent);
}

#sa-auth-gate .social-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--auth-muted);
    font-size: 0.85rem;
}

#sa-auth-gate .social-divider::before,
#sa-auth-gate .social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color, #e2e8f0);
}

#sa-auth-gate .social-divider span {
    padding: 0 12px;
}

#sa-auth-gate .social-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#sa-auth-gate .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-sidebar, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-main, #0f172a);
}

#sa-auth-gate .social-btn:hover {
    border-color: var(--auth-accent);
    background: var(--primary-soft, rgba(37, 99, 235, 0.06));
}
