/* ============================================================
   Login & Signup — modern split-screen redesign
   Brand: #ef5526 | Light theme | Inter font
   ============================================================ */

* { box-sizing: border-box; }

:root {
    --auth-brand: #ef5526;
    --auth-brand-dark: #d8451f;
    --auth-brand-light: #fff5f0;
    --auth-text: #1f2937;
    --auth-text-muted: #6b7280;
    --auth-border: #e5e7eb;
    --auth-bg-soft: #f7f8fa;
    --auth-radius: 14px;
    --auth-ease: cubic-bezier(.22, 1, .36, 1);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--auth-text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: #ffffff;
}

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

/* ============================================================
   BRAND PANEL (sol)
   ============================================================ */
.auth-brand {
    position: relative;
    background: linear-gradient(135deg, #ef5526 0%, #ff7849 55%, #ff8f5e 100%);
    color: #ffffff;
    padding: 56px;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 100vh;
}

.auth-brand-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-brand-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: .12;
    background: #ffffff;
}

.auth-brand-shapes .shape-1 {
    width: 380px; height: 380px;
    top: -120px; right: -80px;
}
.auth-brand-shapes .shape-2 {
    width: 260px; height: 260px;
    bottom: -90px; left: -90px;
    opacity: .08;
}
.auth-brand-shapes .shape-3 {
    width: 160px; height: 160px;
    top: 45%; left: 60%;
    opacity: .06;
}

.auth-brand-content {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.auth-brand-logo {
    display: inline-block;
    margin-bottom: 56px;
}
.auth-brand-logo img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.auth-brand-title {
    margin: 0 0 18px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

/* Title içinde inline Yapıyorum logosu — "Yapıyorum'da kolayı var" */
.auth-brand-title-with-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    line-height: 1.05;
}

.auth-brand-title-logo {
    height: 0.95em;
    width: auto;
    vertical-align: baseline;
    filter: brightness(0) invert(1);   /* logo'yu beyaza çevir */
    margin: 0;
    display: inline-block;
    transform: translateY(0.12em);     /* baseline'da düzgün otursun */
}

.auth-brand-text {
    margin: 0 0 36px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
    max-width: 420px;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .95);
}

.auth-brand-features i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .18);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

/* ============================================================
   FORM PANEL (sağ)
   ============================================================ */
.auth-form-panel {
    background: #ffffff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.auth-mobile-logo {
    display: none;
    margin: 0 0 24px;
    text-align: center;
    width: 100%;
}
.auth-mobile-logo img {
    height: 40px;
    width: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -.01em;
}

.auth-subtitle {
    margin: 0;
    font-size: 14.5px;
    color: var(--auth-text-muted);
    line-height: 1.5;
}

/* ============================================================
   TAB SWITCHER
   ============================================================ */
.form-switch-buttons {
    display: flex;
    background: var(--auth-bg-soft);
    border-radius: 12px;
    padding: 4px;
    margin: 0 0 28px;
    gap: 4px;
}

.switcher {
    flex: 1;
    padding: 11px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: background .2s var(--auth-ease), color .2s var(--auth-ease), box-shadow .2s var(--auth-ease);
}

.switcher:hover {
    color: var(--auth-text);
}

.switcher.active {
    background: #ffffff;
    color: var(--auth-brand);
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .15);
}

.switcher.active::after {
    content: none;
}

/* ============================================================
   FORM
   ============================================================ */
.form-container {
    width: 100%;
}

.form-card {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label,
.form-card label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text);
}

/* Yan yana 2 input */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-2 .form-group {
    margin-bottom: 16px;
}

/* Inputs */
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--auth-text);
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s var(--auth-ease), box-shadow .15s var(--auth-ease), background .15s var(--auth-ease);
}

.form-card input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-card input:hover {
    border-color: #d1d5db;
}

.form-card input:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(239, 85, 38, .12);
    background: #ffffff;
}

/* Input with leading icon */
.input-icon {
    position: relative;
}

.input-icon > i:not(.toggle-password) {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
    transition: color .15s var(--auth-ease);
}

.input-icon input {
    padding-left: 40px !important;
}

.input-icon:focus-within > i:not(.toggle-password) {
    color: var(--auth-brand);
}

/* Password input — eye toggle */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 42px !important;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    transition: color .15s var(--auth-ease);
}

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

/* ============================================================
   CHECKBOX
   ============================================================ */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-brand);
    cursor: pointer;
}

.form-checkbox label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text-muted);
    cursor: pointer;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 22px;
}

.link-orange {
    color: var(--auth-brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s var(--auth-ease);
}

.link-orange:hover {
    color: var(--auth-brand-dark);
    text-decoration: underline;
}

/* ============================================================
   GENDER OPTIONS
   ============================================================ */
.gender-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gender-option {
    position: relative;
    flex: 1 1 auto;
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text);
    transition: all .15s var(--auth-ease);
}

.gender-option:hover {
    border-color: #d1d5db;
    background: var(--auth-bg-soft);
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-option .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex: 0 0 16px;
    position: relative;
    transition: border-color .15s var(--auth-ease);
}

.gender-option input[type="radio"]:checked ~ .checkmark {
    border-color: var(--auth-brand);
}

.gender-option .checkmark::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: var(--auth-brand);
    border-radius: 50%;
    transform: scale(0);
    transition: transform .15s var(--auth-ease);
}

.gender-option input[type="radio"]:checked ~ .checkmark::after {
    transform: scale(1);
}

.gender-option:has(input[type="radio"]:checked) {
    border-color: var(--auth-brand);
    background: var(--auth-brand-light);
}

.gender-label {
    line-height: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: var(--auth-brand);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s var(--auth-ease), transform .12s var(--auth-ease), box-shadow .15s var(--auth-ease);
    box-shadow: 0 6px 16px -6px rgba(239, 85, 38, .55);
}

.btn-primary:hover {
    background: var(--auth-brand-dark);
    box-shadow: 0 10px 22px -8px rgba(239, 85, 38, .55);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    height: 48px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color .15s var(--auth-ease), background .15s var(--auth-ease);
}

.btn-secondary:hover {
    background: var(--auth-bg-soft);
    border-color: #d1d5db;
}

.button-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    margin-top: 8px;
}

.button-container .btn-primary {
    margin-top: 0;
}

/* ============================================================
   ALT CTA + LEGAL + ALERTS
   ============================================================ */
.auth-alt-cta {
    margin: 20px 0 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--auth-text-muted);
}

.auth-alt-cta a {
    margin-left: 4px;
}

.legal-text {
    margin-top: 16px;
}

.legal-text p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--auth-text-muted);
}

.legal-text a {
    color: var(--auth-brand);
    font-weight: 600;
    text-decoration: none;
}

.legal-text a:hover { text-decoration: underline; }

.alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ============================================================
   LOCKOUT CARD
   ============================================================ */
.lockout-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 24px 20px;
    margin: 0 0 20px;
    background: var(--auth-brand-light);
    border: 1px solid rgba(239, 85, 38, .25);
    border-radius: 14px;
}

.lockout-card i {
    font-size: 24px;
    color: var(--auth-brand);
    margin-bottom: 4px;
}

.lockout-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--auth-text);
}

.lockout-card p {
    margin: 0;
    font-size: 13px;
    color: var(--auth-text-muted);
}

.lockout-card strong {
    color: var(--auth-brand);
    font-weight: 700;
}

/* ============================================================
   FORGOT PASSWORD INTRO
   ============================================================ */
.forgot-intro {
    text-align: center;
    margin-bottom: 24px;
}

.forgot-intro > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--auth-brand-light);
    color: var(--auth-brand);
    border-radius: 50%;
    font-size: 22px;
    margin-bottom: 12px;
}

.forgot-intro h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--auth-text);
}

.forgot-intro p {
    margin: 0;
    font-size: 13.5px;
    color: var(--auth-text-muted);
    line-height: 1.5;
}

/* ============================================================
   MODAL (terms)
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.modal-content {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 28px 24px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .25);
}

.modal-content h2 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.modal-content .close {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: var(--auth-text-muted);
    line-height: 1;
}

.modal-content .close:hover { color: var(--auth-text); }

/* ============================================================
   FOOTER
   ============================================================ */
.auth-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-mobile-logo {
        display: block;
    }

    .auth-form-panel {
        padding: 32px 20px;
        min-height: 100vh;
        justify-content: flex-start;
    }

    .auth-form-wrap {
        max-width: 480px;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        padding: 24px 16px 32px;
    }

    .auth-mobile-logo {
        margin-bottom: 18px;
    }

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

    .auth-header {
        margin-bottom: 22px;
    }

    .auth-title { font-size: 24px; }

    .auth-subtitle { font-size: 13.5px; }

    .form-switch-buttons {
        margin-bottom: 22px;
    }

    .switcher {
        font-size: 13.5px;
        padding: 10px 12px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-card input[type="text"],
    .form-card input[type="email"],
    .form-card input[type="tel"],
    .form-card input[type="password"] {
        height: 44px;
        font-size: 14px;
    }

    .gender-options {
        flex-direction: column;
    }

    .gender-option {
        min-width: auto;
        width: 100%;
    }

    .button-container {
        grid-template-columns: 1fr;
    }

    .btn-primary {
        height: 46px;
        font-size: 14px;
    }

    .auth-alt-cta {
        font-size: 13px;
    }

    .legal-text p {
        font-size: 12px;
        line-height: 1.5;
    }

    .auth-footer {
        margin-top: 20px;
        font-size: 11.5px;
    }
}

@media (max-width: 374.98px) {
    .auth-form-panel { padding: 20px 14px 28px; }
    .auth-title { font-size: 22px; }
    .form-switch-buttons { padding: 3px; }
    .switcher { font-size: 13px; padding: 9px 8px; }
}
