/* Giriş sayfası. Ortak dil public.css'te. */
.public-login {
    min-height: 100dvh;
    background:
        radial-gradient(60% 50% at 50% 0%, rgb(101 70 219 / 8%), transparent 70%),
        var(--p-page);
}
.auth-shell {
    display: grid;
    justify-items: center;
    gap: 24px;
    width: min(440px, 100% - 32px);
    margin: 0 auto;
    padding: clamp(32px, 8vh, 80px) 0 24px;
}
.auth-brand img { width: auto; height: 40px; }
.auth-card {
    width: 100%;
    padding: 28px;
    border: 1px solid var(--p-line);
    border-radius: var(--p-radius-lg);
    background: var(--p-surface);
    box-shadow: var(--p-shadow-lg);
}
@media (prefers-reduced-motion: no-preference) {
    .auth-card {
        transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
        @starting-style { opacity: 0; transform: translateY(8px); }
    }
}
.auth-head { margin-bottom: 20px; }
.auth-title { font-size: 22px; letter-spacing: -.03em; }
.auth-value { margin-top: 6px; color: var(--p-muted); font-size: 14px; line-height: 1.5; }
.auth-demo { width: 100%; }
.auth-desc { margin: 10px 0 0; color: var(--p-muted); font-size: 13px; line-height: 1.5; }

.auth-plan-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.auth-plan { display: grid; align-content: start; gap: 4px; padding: 12px; border: 1px solid var(--p-line); border-radius: 10px; background: #fcfcfc; }
.auth-plan b { font-size: 13px; font-weight: 650; }
.auth-plan span { color: var(--p-muted); font-size: 12px; line-height: 1.45; }
.auth-plan-pro { border-color: rgb(101 70 219 / 20%); background: #fbfaff; }
.auth-plan a { color: var(--p-accent-ink); font-weight: 550; text-underline-offset: 2px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--p-faint); font-size: 12px; font-weight: 500; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--p-line); }

.auth-panel { width: 100%; }
#login-choice { display: grid; gap: 8px; }
.auth-choice { width: 100%; }
.auth-marketing-link { margin-top: 6px; color: var(--p-muted); font-size: 13px; font-weight: 500; text-align: center; text-decoration: none; transition: color 160ms ease; }
.auth-marketing-link:hover { color: var(--p-ink); }
.auth-form { display: grid; gap: 10px; margin-top: 14px; }
.auth-form .btn { width: 100%; margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
    #login-user, #login-admin {
        transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
        @starting-style { opacity: 0; transform: translateY(4px); }
    }
}
.back-link {
    display: block;
    margin: 12px auto 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--p-muted);
    font: 500 13px/1 var(--p-font);
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}
.back-link:hover { color: var(--p-ink); background: var(--p-subtle); }

.auth-error, .auth-warning { margin-top: 16px; padding: 12px 14px; border: 1px solid rgb(180 35 24 / 20%); border-radius: 10px; background: #fff6f5; color: var(--p-danger); font-size: 13px; font-weight: 500; }

.footer-text { color: var(--p-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.footer-text a { color: var(--p-ink-2); font-weight: 550; text-decoration: none; }
.footer-text span { color: var(--p-faint); font-size: 12px; }

@media (max-width: 420px) {
    .auth-card { padding: 22px; }
    .auth-plan-strip { grid-template-columns: 1fr; }
}

/* Kartın içi sırayla belirir */
@media (prefers-reduced-motion: no-preference) {
    .auth-brand, .auth-card > * { animation: auth-rise 560ms var(--ease-out) both; }
    .auth-card > :nth-child(2) { animation-delay: 60ms; }
    .auth-card > :nth-child(3) { animation-delay: 110ms; }
    .auth-card > :nth-child(4) { animation-delay: 160ms; }
    .auth-card > :nth-child(n+5) { animation-delay: 210ms; }
    @keyframes auth-rise { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
}
@media (hover: hover) and (pointer: fine) {
    .auth-plan { transition: border-color 200ms ease, transform 200ms var(--ease-out); }
    .auth-plan:hover { transform: translateY(-2px); border-color: var(--p-line-strong); }
}
