/* AraziMax — Auth (Giriş / Kayıt) sayfaları */

.auth-shell {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px;
    background:
        radial-gradient(1000px 500px at 100% 0%, rgba(251,133,0,0.08), transparent 60%),
        radial-gradient(800px 400px at 0% 100%, rgba(239,35,60,0.08), transparent 60%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
    position: relative;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-card__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-deep);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.auth-card__title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.auth-card__title .gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-card__subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Google butonu */
.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    color: #1f1f1f;
    border: 1.5px solid var(--line-strong);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
    text-decoration: none;
}
.auth-google:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: var(--ink);
}
.auth-google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Koyu temalı Google butonu — beyaz monogram */
.auth-google--dark {
    background: linear-gradient(135deg, #1a1a1f 0%, #2b2b34 100%);
    color: #fff;
    border-color: #1a1a1f;
}
.auth-google--dark:hover {
    background: linear-gradient(135deg, #000 0%, #1a1a1f 100%);
    border-color: #000;
    color: #fff;
}
.auth-google--dark svg { color: #fff; }

/* Ayraç */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--muted-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}
.auth-field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line-strong);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239,35,60,0.12);
}
.auth-field input::placeholder { color: var(--muted-2); }

/* Telefon input (TR bayraklı + sabit prefix) */
.phone-input {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    overflow: hidden;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.phone-input:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239,35,60,0.12);
}
.phone-input__prefix {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 14px;
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    user-select: none;
    flex-shrink: 0;
}
.phone-input__flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    display: inline-flex;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.phone-input__flag svg { width: 100%; height: 100%; display: block; }
.phone-input input {
    flex: 1;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 13px 16px !important;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    letter-spacing: 0.02em;
}
.phone-input input:focus { outline: none; }

/* OTP kod input */
.otp-input {
    width: 100%;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem !important;
    letter-spacing: 0.5em !important;
    padding: 18px 12px !important;
    text-indent: 0.25em;
}

.otp-dev-banner {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7d6, #ffe9b8);
    border: 1.5px dashed #d8a838;
    color: #6b4d10;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.otp-dev-banner strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    color: #4a3408;
    background: rgba(255,255,255,0.6);
    padding: 3px 10px;
    border-radius: 6px;
}

.auth-link-btn {
    background: none;
    border: 0;
    color: var(--accent-deep);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.92rem;
    text-decoration: underline;
    font-family: var(--font-body);
}
.auth-link-btn:hover { color: var(--accent); }

.auth-meta {
    text-align: center;
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .auth-row { grid-template-columns: 1fr; } }

.auth-submit {
    margin-top: 6px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 0;
    background: var(--accent-grad);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 26px -10px rgba(239,35,60,0.55);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(239,35,60,0.65); filter: brightness(1.04); }

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fde7eb;
    color: #a01829;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #f5c6cd;
}

.auth-footer {
    text-align: center;
    margin: 20px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}
.auth-footer a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-tos {
    text-align: center;
    margin: 18px 0 0;
    font-size: 0.75rem;
    color: var(--muted-2);
    line-height: 1.5;
}
.auth-tos a { color: var(--muted); text-decoration: underline; }

.auth-consent {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 2px;
    padding: 14px 16px;
    background: var(--bg-paper, #fff);
    border: 1.5px solid var(--line, #E8E2D6);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-consent:hover { border-color: var(--line-strong, #D8D0BE); }
.auth-consent:has(input:checked) {
    border-color: var(--accent, #EF233C);
    background: var(--accent-soft, #FFF1EC);
    box-shadow: 0 8px 22px -14px rgba(239,35,60,0.5);
}

.auth-consent__icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--bg-soft, #F4EFE6);
    color: var(--muted, #5E5C58);
    font-size: 1.15rem;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.auth-consent:has(input:checked) .auth-consent__icon {
    background: var(--accent-grad, linear-gradient(135deg,#EF233C,#FB8500));
    color: #fff;
}

.auth-consent__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.auth-consent__text strong { color: var(--ink, #0B0B0F); font-weight: 600; font-size: 0.92rem; }
.auth-consent__text small { color: var(--muted, #5E5C58); font-size: 0.76rem; line-height: 1.4; }

/* Toggle switch */
.auth-consent__switch { flex-shrink: 0; position: relative; display: inline-flex; }
.auth-consent__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.auth-consent__track {
    width: 46px; height: 27px;
    border-radius: 999px;
    background: var(--line-strong, #D8D0BE);
    display: inline-flex;
    align-items: center;
    padding: 3px;
    transition: background .2s var(--ease);
}
.auth-consent__thumb {
    width: 21px; height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(11,11,15,0.25);
    transition: transform .22s var(--ease);
}
.auth-consent__switch input:checked + .auth-consent__track { background: var(--accent-grad, linear-gradient(135deg,#EF233C,#FB8500)); }
.auth-consent__switch input:checked + .auth-consent__track .auth-consent__thumb { transform: translateX(19px); }
.auth-consent__switch input:focus-visible + .auth-consent__track { box-shadow: 0 0 0 3px rgba(239,35,60,0.25); }

@media (max-width: 520px) {
    .auth-card { padding: 32px 22px; border-radius: var(--radius); }
    .auth-card__title { font-size: 1.55rem; }
    .auth-shell { padding: 60px 14px 40px; }
}
