/* =========================================
   AUTH PAGES (Giriş / Üye Ol / Şifre Sıfırla)
   Split-screen premium tasarım
   ========================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

/* ===== SOL TARAF — FORM ===== */
.auth-form-side {
    display: flex;
    flex-direction: column;
    padding: 32px 48px;
    overflow-y: auto;
    background: #fff;
}

.auth-form-side__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.auth-logo img {
    height: 36px;
    width: auto;
}

.auth-form-side__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.auth-form-side__back:hover {
    color: var(--color-green);
}

.auth-form-side__content {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-side__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}

.auth-form-side__subtitle {
    font-size: 14.5px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

.auth-form-side__subtitle a {
    color: var(--color-green);
    font-weight: 700;
    text-decoration: none;
}

.auth-form-side__subtitle a:hover {
    text-decoration: underline;
}

/* ===== SOSYAL GİRİŞ ===== */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    font-family: inherit;
}

.social-btn:hover {
    background: var(--color-bg-soft);
    border-color: #c8cdd6;
    transform: translateY(-1px);
}

.social-btn--google svg { color: #4285f4; }
.social-btn--facebook svg { color: #1877f2; }
.social-btn--apple svg { color: #000; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--color-text-muted);
    font-size: 12.5px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* ===== FORM ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.auth-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field__wrap svg.auth-field__icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 1;
}

.auth-field input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--color-text);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(105, 41, 212, 0.1);
}

.auth-field input::placeholder {
    color: #9aa3b3;
}

.auth-field__toggle {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
}

.auth-field__hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.auth-field__error {
    font-size: 12.5px;
    color: #ef4444;
    margin-top: 2px;
    display: none;
}

.auth-field--error input {
    border-color: #ef4444;
}

.auth-field--error .auth-field__error {
    display: block;
}

/* Password strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.password-strength__bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength__fill {
    height: 100%;
    width: 0;
    background: #ef4444;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength__fill.is-weak { width: 33%; background: #ef4444; }
.password-strength__fill.is-medium { width: 66%; background: #f59e0b; }
.password-strength__fill.is-strong { width: 100%; background: #10b981; }

.password-strength__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    min-width: 50px;
    text-align: right;
}

/* Remember + Forgot */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--color-text);
}

.auth-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-check input[type="checkbox"]:checked {
    background: var(--color-green);
    border-color: var(--color-green);
}

.auth-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-check small {
    line-height: 1.4;
}

.auth-check small a {
    color: var(--color-green);
    font-weight: 700;
    text-decoration: none;
}

.auth-forgot {
    font-size: 13px;
    color: var(--color-green);
    font-weight: 700;
    text-decoration: none;
}

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

/* ===== BUTTON ===== */
.auth-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-cyan) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(105, 41, 212, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    font-family: inherit;
    margin-top: 8px;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(105, 41, 212, 0.45);
    filter: brightness(1.05);
}

.auth-form-side__footer {
    margin-top: 28px;
    text-align: center;
    font-size: 13.5px;
    color: var(--color-text-muted);
}

.auth-form-side__footer a {
    color: var(--color-green);
    font-weight: 700;
    text-decoration: none;
}

.auth-form-side__footer a:hover {
    text-decoration: underline;
}

/* ===== SAĞ TARAF — BRAND VISUAL ===== */
.auth-brand-side {
    position: relative;
    background: linear-gradient(135deg, #1a0b3d 0%, #4d1a9e 50%, #6929d4 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    isolation: isolate;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('https://images.unsplash.com/photo-1518684079-3c830dcef090?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    mix-blend-mode: overlay;
}

.auth-brand-side__decor {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 181, 68, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-side__decor--1 {
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
}

.auth-brand-side__decor--2 {
    bottom: -120px;
    left: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(155, 108, 255, 0.5) 0%, transparent 70%);
}

.auth-brand-side__content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    text-align: center;
}

.auth-brand-side__badge {
    display: inline-block;
    background: var(--color-orange);
    color: #1c2536;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.auth-brand-side__title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.auth-brand-side__subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-brand-side__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-top: 28px;
}

.auth-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.auth-feat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.auth-feat__icon {
    width: 40px;
    height: 40px;
    background: var(--color-orange);
    color: #1c2536;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 181, 68, 0.35);
}

.auth-feat__body strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 2px;
}

.auth-feat__body small {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-brand-side {
        display: none;
    }
    .auth-form-side {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .auth-form-side { padding: 20px 18px; }
    .auth-form-side__header { margin-bottom: 24px; }
    .auth-form-side__title { font-size: 24px; }
    .auth-form-side__subtitle { font-size: 13.5px; margin-bottom: 22px; }
    .social-login { gap: 8px; }
    .auth-options { font-size: 12.5px; }
}
