/**
 * Esnaf POS giriş / kayıt sayfaları — renk ve tipografi Galerim Esnaf (galerim-auth.css) ile uyumlu
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --ga-bg: #0f1419;
    --ga-surface: #1a222c;
    --ga-border: rgba(255, 255, 255, 0.08);
    --ga-text: #f1f5f9;
    --ga-muted: #94a3b8;
    --ga-accent: #38bdf8;
    --ga-accent-dim: #0ea5e9;
    --ga-danger: #d97706;
    --ga-success: #4ade80;
    --ga-radius: 12px;
    --ga-font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ga-shadow-card: 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

body {
    font-family: var(--ga-font);
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(56, 189, 248, 0.18), transparent 55%),
        var(--ga-bg);
    color: var(--ga-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Üst bar — koyu cam */
header {
    background: rgba(15, 23, 42, 0.88);
    padding: 1rem 2rem;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left img {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease;
    border-radius: 10px;
}

.header-left img:hover {
    transform: scale(1.03);
}

.header-left h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ga-text);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
    opacity: 0.92;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--ga-accent), var(--ga-accent-dim));
    transition: width 0.2s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: var(--ga-accent);
    opacity: 1;
}

nav ul li a:hover::after {
    width: 70%;
}

nav ul li a.active {
    color: var(--ga-text);
    font-weight: 600;
    opacity: 1;
}

nav ul li a.active::after {
    width: 70%;
}

nav ul li a.auth-button {
    background: linear-gradient(135deg, var(--ga-accent), var(--ga-accent-dim));
    color: #0f172a !important;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    opacity: 1 !important;
    font-weight: 700;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

nav ul li a.auth-button::after {
    display: none;
}

nav ul li a.auth-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 3px;
    transition: transform 0.2s ease;
}

/* Ana içerik */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
    min-height: calc(100vh - 140px);
}

.auth-card {
    background: var(--ga-surface);
    border: 1px solid var(--ga-border);
    border-radius: var(--ga-radius);
    box-shadow: var(--ga-shadow-card);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.auth-header {
    padding: 2rem 1.75rem 1.35rem;
    text-align: center;
    border-bottom: 1px solid var(--ga-border);
    background: rgba(0, 0, 0, 0.15);
}

.auth-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ga-accent), var(--ga-accent-dim));
    color: #0f172a;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.auth-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
    color: var(--ga-text);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-header p {
    color: var(--ga-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-form-container {
    padding: 1.75rem 1.75rem 2rem;
}

/* Giriş merkezi (giris.html) — kart üstü başlık */
.auth-card > .auth-header:first-child h2 {
    font-size: 1.35rem;
}

.auth-card > .auth-header:first-child p {
    margin: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--ga-muted);
    pointer-events: none;
    z-index: 1;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--ga-border);
    border-radius: 10px;
    font-family: var(--ga-font);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(0, 0, 0, 0.25);
    color: var(--ga-text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--ga-accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.input-wrapper:has(input:focus) .input-icon {
    color: var(--ga-accent);
}

/* Ülke kodu + numara (phone-e164): sol telefon ikonu ülke kutusuyla üst üste binmesin */
.input-wrapper:has(.turkinsoft-phone-input-wrap) .input-icon {
    display: none;
}

.input-wrapper:has(.turkinsoft-phone-input-wrap) .turkinsoft-phone-input-wrap input[type='tel'] {
    padding-left: 1rem;
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.form-group small {
    display: block;
    margin-top: 0.45rem;
    color: var(--ga-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--ga-muted);
    text-transform: none;
    font-weight: 500;
}

.form-options input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--ga-accent);
}

.form-options a {
    color: var(--ga-accent);
    text-decoration: none;
    font-weight: 600;
}

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

.submit-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, var(--ga-accent), var(--ga-accent-dim));
    color: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    font-family: var(--ga-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.submit-btn:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* giris.html — seçenek düğmeleri (Galerim birincil / ikincil CTA) */
.auth-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--ga-accent), var(--ga-accent-dim));
    color: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    font-family: var(--ga-font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.28);
}

.auth-option-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    stroke-width: 2.25;
}

.auth-option-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.auth-option-btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--ga-text);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    font-weight: 600;
}

.auth-option-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
}

.auth-option-btn-tertiary {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    font-weight: 600;
}

.auth-option-btn-tertiary:hover {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.07);
}

.error-message {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #bbf7d0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    display: none;
}

.success-message.show {
    display: block;
}

.auth-links {
    margin-top: 1.35rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--ga-muted);
}

.auth-links p {
    margin-bottom: 0.45rem;
}

.auth-links a {
    color: var(--ga-accent);
    text-decoration: none;
    font-weight: 600;
}

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

footer {
    background: transparent;
    color: var(--ga-muted);
    text-align: center;
    padding: 1.25rem 1rem 1.5rem;
    position: relative;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.82rem;
}

footer::before {
    display: none;
}

footer p {
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.95;
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.35rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.97);
        border: 1px solid rgba(148, 163, 184, 0.15);
        padding: 1rem 1.25rem;
        border-radius: 0 0 12px 12px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    nav ul.open {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

    .auth-container {
        padding: 1.5rem 1rem 2rem;
    }

    .auth-form-container {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .auth-header {
        padding: 1.5rem 1.25rem 1.1rem;
    }
}
