/* Giriş / Üye ol — OGEFEX */
:root {
    --auth-brand: #1b81fc;
    --auth-brand-deep: #0b3d7a;
    --auth-ink: #0f172a;
    --auth-muted: #64748b;
    --auth-line: #e2e8f0;
    --auth-surface: #f8fafc;
    --auth-font: 'Manrope', system-ui, sans-serif;
    --auth-display: 'Fraunces', Georgia, serif;
}

.auth-page-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--auth-font);
    color: var(--auth-ink);
    background: var(--auth-surface);
    -webkit-font-smoothing: antialiased;
}

.auth-page { min-height: 100vh; }

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

.auth-visual {
    position: relative;
    display: none;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
}

.auth-visual__media {
    position: absolute;
    inset: 0;
    background-image: var(--auth-hero);
    background-size: cover;
    background-position: center 35%;
    transform: scale(1.04);
    animation: authHeroDrift 18s ease-in-out infinite alternate;
}

.auth-visual__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(11, 61, 122, 0.82) 0%, rgba(27, 129, 252, 0.55) 48%, rgba(15, 23, 42, 0.72) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.35), transparent 45%);
}

.auth-visual__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
    padding: 48px 56px 56px;
    max-width: 560px;
    animation: authFadeUp .7s ease both;
}

.auth-visual__brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 28px;
    text-decoration: none;
    color: #fff;
}

.auth-visual__logo {
    height: 42px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.auth-visual__wordmark {
    font-family: var(--auth-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-visual__title {
    margin: 0 0 14px;
    font-family: var(--auth-display);
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.auth-visual__text {
    margin: 0;
    max-width: 34ch;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 20px 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(27, 129, 252, 0.08), transparent 42%),
        #fff;
}

.auth-top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--auth-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.auth-top-link:hover { color: var(--auth-brand); }

.auth-panel-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    animation: authFadeUp .55s ease both;
}

.auth-card-top { margin-bottom: 18px; }

.auth-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--auth-ink);
    margin-bottom: 10px;
}

.auth-brand-link--mobile { display: inline-flex; }

.site-logo-img--auth {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.auth-card-lead {
    margin: 0;
    font-size: 0.95rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 20px;
    padding: 4px;
    border-radius: 14px;
    background: #f1f5f9;
}

.auth-tab {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--auth-muted);
    cursor: pointer;
    border-radius: 11px;
    transition: color .2s ease;
}

.auth-tab.is-active { color: var(--auth-ink); }

.auth-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
    z-index: 0;
}

.auth-tab-indicator.is-register { transform: translateX(100%); }

.auth-panel { display: none; }
.auth-panel.is-active {
    display: block;
    animation: authPanelIn .28s ease both;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.auth-input-wrap { position: relative; }

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    padding: 0 14px 0 42px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--auth-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-input.has-toggle { padding-right: 46px; }

.auth-input:focus {
    outline: none;
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 4px rgba(27, 129, 252, 0.14);
}

.auth-input-code {
    padding-left: 14px;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.auth-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-toggle-password:hover { color: var(--auth-brand); }

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.auth-remember,
.auth-consent {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-remember input,
.auth-consent input {
    margin-top: 2px;
    accent-color: var(--auth-brand);
}

.auth-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--auth-brand);
    text-decoration: none;
}

.auth-link:hover { text-decoration: underline; }

.auth-consents { margin-top: 2px; }
.auth-consent span { line-height: 1.4; }

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2b8dff 0%, var(--auth-brand) 55%, #1568d4 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(27, 129, 252, 0.28);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(27, 129, 252, 0.34);
    filter: brightness(1.02);
    color: #fff;
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.auth-submit-btn-link {
    margin-top: 8px;
    width: auto;
    display: flex;
}

.auth-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--auth-line);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--auth-muted);
}

.auth-trust-row i {
    color: var(--auth-brand);
    margin-right: 4px;
}

.auth-guest-checkout {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--auth-ink);
    text-decoration: none;
}

.auth-guest-checkout:hover { color: var(--auth-brand); }

.auth-verify-head {
    text-align: center;
    margin-bottom: 18px;
}

.auth-verify-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 129, 252, 0.1);
    color: var(--auth-brand);
    font-size: 1.6rem;
}

.auth-verify-head h2 {
    margin: 0 0 6px;
    font-family: var(--auth-display);
    font-size: 1.55rem;
}

.auth-verify-head p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-verify-target {
    margin-top: 8px !important;
    font-weight: 700;
    color: var(--auth-ink) !important;
}

.auth-cancel-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: var(--auth-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
}

.auth-cancel-btn:hover { color: var(--auth-brand); }

.auth-info-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(27, 129, 252, 0.06);
    border: 1px solid rgba(27, 129, 252, 0.14);
    margin-bottom: 16px;
}

.auth-info-box i {
    color: var(--auth-brand);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.auth-info-box p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-info-box a {
    color: var(--auth-brand);
    font-weight: 700;
}

.auth-footer-note {
    margin: 22px auto 0;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
    max-width: 420px;
    width: 100%;
}

.d-none { display: none !important; }

@keyframes authHeroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes authPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 960px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    }
    .auth-visual { display: block; }
    .auth-main { padding: 40px 48px; }
    .auth-brand-link--mobile { display: none; }
    .auth-panel-shell {
        margin: 0;
        max-width: 400px;
    }
    .auth-top-link { margin-bottom: 28px; }
}

@media (max-width: 959px) {
    .auth-main {
        background:
            linear-gradient(180deg, rgba(27, 129, 252, 0.08), transparent 140px),
            #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-visual__media,
    .auth-visual__content,
    .auth-panel-shell,
    .auth-panel.is-active,
    .auth-tab-indicator {
        animation: none !important;
        transition: none !important;
    }
}
