/* Auth pages — storefront temadan bağımsız, modern B2B giriş yüzeyi */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
    --auth-ink: #12151a;
    --auth-ink-soft: #2a3038;
    --auth-paper: #f4f1eb;
    --auth-surface: #ffffff;
    --auth-line: #d9dde3;
    --auth-muted: #6b7280;
    --auth-accent: #0f766e;
    --auth-accent-hover: #0d9488;
    --auth-danger: #b42318;
    --auth-radius: 14px;
    --auth-font: "Outfit", system-ui, sans-serif;
    --auth-display: "Newsreader", Georgia, serif;
}

body.auth-page-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--auth-font);
    color: var(--auth-ink);
    background: var(--auth-paper) !important;
    display: block !important;
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    color: #f7f5f1;
    background: #0a0c10;
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: auth-visual-in 0.7s ease-out both;
}

.auth-visual__glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 55% 45% at 30% 35%, rgba(15, 118, 110, 0.45), transparent 60%),
        radial-gradient(ellipse 50% 40% at 75% 70%, rgba(56, 189, 248, 0.12), transparent 55%),
        linear-gradient(160deg, #0a0c10 0%, #141a22 55%, #0f1419 100%);
    pointer-events: none;
}

.auth-visual__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    opacity: 0.55;
}

.auth-visual__orb--a {
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    right: -12%;
    top: -8%;
    background: radial-gradient(circle at 40% 40%, rgba(45, 212, 191, 0.35), transparent 68%);
    animation: auth-orb-drift 14s ease-in-out infinite alternate;
}

.auth-visual__orb--b {
    width: min(42vw, 360px);
    height: min(42vw, 360px);
    left: -10%;
    bottom: -12%;
    background: radial-gradient(circle at 60% 40%, rgba(148, 163, 184, 0.2), transparent 70%);
    animation: auth-orb-drift 18s ease-in-out infinite alternate-reverse;
}

.auth-visual__stage {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}

.auth-visual__brand {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-visual__brand img {
    max-height: none;
    height: clamp(3.25rem, 7vw, 4.75rem);
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.auth-visual__brand-name {
    font-family: var(--auth-display);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.auth-visual__tag {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(247, 245, 241, 0.5);
    padding-top: 0.15rem;
    border-top: 1px solid rgba(247, 245, 241, 0.18);
    min-width: 4.5rem;
}

.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(244, 241, 235, 0.9)),
        var(--auth-paper);
    animation: auth-main-in 0.55s ease-out 0.08s both;
}

.auth-main__inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-main__inner--wide {
    max-width: 560px;
}

.auth-main__mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-main__mobile-brand a {
    color: var(--auth-ink);
    text-decoration: none;
}

.auth-main__mobile-brand img {
    max-height: 40px;
    width: auto;
}

.auth-main__mobile-brand-name {
    font-family: var(--auth-display);
    font-size: 1.75rem;
    font-weight: 600;
}

/* Card override — Bootstrap card’ı sadeleştir */
.auth-page-body .auth-card {
    max-width: none;
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.auth-page-body .auth-card .card-body {
    padding: 0 !important;
}

.auth-page-body .auth-card.auth-compact .card-body {
    padding: 0 !important;
}

.auth-card__title {
    margin-bottom: 1.5rem !important;
    text-align: left;
}

.auth-card__title.text-center {
    text-align: center !important;
}

.auth-card__title .h3,
.auth-card__title h1 {
    font-family: var(--auth-font);
    font-size: 1.65rem !important;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--auth-ink);
    margin-bottom: 0.35rem !important;
}

.auth-card__title .text-muted,
.auth-card__title p {
    color: var(--auth-muted) !important;
    font-size: 0.95rem !important;
    line-height: 1.45;
}

.auth-page-body .auth-card .form-label {
    font-weight: 500;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: var(--auth-ink-soft);
}

.auth-page-body .auth-card .form-control,
.auth-page-body .auth-card .form-select {
    min-height: 2.75rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: var(--auth-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-page-body .auth-card .form-control:focus,
.auth-page-body .auth-card .form-select:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.auth-page-body .auth-card .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.auth-page-body .auth-card .input-group .btn {
    border: 1px solid var(--auth-line);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: var(--auth-surface);
    color: var(--auth-muted);
    min-height: 2.75rem;
}

.auth-page-body .auth-card .input-group .btn:hover {
    color: var(--auth-ink);
    background: #f8fafc;
}

.auth-page-body .auth-card a {
    color: var(--auth-accent);
}

.auth-page-body .auth-card a:hover {
    color: var(--auth-accent-hover);
}

.auth-page-body .auth-card .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}

.auth-page-body .auth-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.auth-page-body .auth-card .btn.btn-dark,
.auth-page-body .auth-card .btn.btn-primary,
.auth-page-body .auth-submit {
    --bs-btn-bg: var(--auth-ink);
    --bs-btn-border-color: var(--auth-ink);
    --bs-btn-hover-bg: var(--auth-ink-soft);
    --bs-btn-hover-border-color: var(--auth-ink-soft);
    --bs-btn-active-bg: var(--auth-ink-soft);
    --bs-btn-active-border-color: var(--auth-ink-soft);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    min-height: 2.85rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.auth-page-body .auth-card .btn.btn-dark:hover,
.auth-page-body .auth-card .btn.btn-primary:hover,
.auth-page-body .auth-submit:hover {
    transform: translateY(-1px);
}

.auth-page-body .auth-card .mb-3 {
    margin-bottom: 1rem !important;
}

.auth-page-body .auth-card .mb-4 {
    margin-bottom: 1.25rem !important;
}

.auth-page-body .auth-create-note {
    color: var(--auth-ink-soft) !important;
    background: rgba(15, 118, 110, 0.08) !important;
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: 10px;
}

.auth-lang-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 30;
}

.auth-lang-switcher .btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--auth-line);
    border-radius: 999px;
    padding-inline: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.auth-lang-switcher .dropdown-menu {
    min-width: 10.5rem;
    border-radius: 12px;
    border-color: var(--auth-line);
}

.venz-flag {
    display: inline-block;
    width: 1.25rem;
    height: 0.9375rem;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: -0.1em;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

@keyframes auth-visual-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: none; }
}

@keyframes auth-main-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes auth-orb-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(18px, -22px, 0) scale(1.06); }
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-main__mobile-brand {
        display: block;
        animation: auth-main-in 0.45s ease-out both;
    }

    .auth-main {
        min-height: 100vh;
        padding-top: 3.5rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .auth-visual,
    .auth-visual__orb,
    .auth-main,
    .auth-main__mobile-brand,
    .auth-page-body .auth-card .btn.btn-dark {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
