/* ============================================================
   GoreWin Auth — split layout
   login.php / register.php / forgot-password.php ortak stili
   ============================================================ */

:root {
    --auth-purple: #6366f1;
    --auth-purple-rgb: 99, 102, 241;
    --auth-purple-d: #4f46e5;
    --auth-pink: #ec4899;
    --auth-amber: #f59e0b;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-faint: #94a3b8;
    --auth-border: #e2e8f0;
    --auth-bg: #ffffff;
    --auth-input-bg: #ffffff;
}

[data-theme="dark"] {
    --auth-text: #f1f5f9;
    --auth-muted: #94a3b8;
    --auth-faint: #64748b;
    --auth-border: #334155;
    --auth-bg: #0f172a;
    --auth-input-bg: #1e293b;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Split layout ---------- */
.auth-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-left {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-left-inner {
    width: 100%;
    max-width: 410px;
}

.auth-right {
    flex: 1.1 1 0;
    padding: 0;
    display: none;
}

@media (min-width: 1000px) {
    .auth-right { display: flex; }
}

/* ---------- Header / logo (sol) ---------- */
.auth-header { margin-bottom: 28px; }

.auth-logo {
    display: inline-block;
    margin-bottom: 26px;
    text-decoration: none;
}

.auth-title {
    font-size: 33px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--auth-text);
    line-height: 1.1;
}

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

/* ---------- Form ---------- */
.auth-form { margin-top: 4px; }

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

.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.form-label i { color: var(--auth-faint); margin-right: 4px; }

.form-control {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--auth-text);
    background: var(--auth-input-bg);
    border: 1.5px solid var(--auth-border);
    border-radius: 13px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

/* İkon içeren input */
.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-faint);
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}
.form-control-icon { padding-left: 44px; }
.password-input.input-icon-wrap .form-control-icon { padding-left: 44px; padding-right: 48px; }

textarea.form-control { height: auto; padding: 12px 16px; }

.form-control::placeholder { color: var(--auth-faint); }

.form-control:focus {
    border-color: var(--auth-purple);
    box-shadow: 0 0 0 4px rgba(var(--auth-purple-rgb), 0.12);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}

/* Şifre alanı */
.password-input { position: relative; }
.password-input .form-control { padding-right: 48px; }
.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 52px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--auth-faint);
    cursor: pointer;
    font-size: 15px;
}
.password-toggle:hover { color: var(--auth-purple); }

/* Şifre gücü */
.password-strength {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
}
.strength-bar {
    flex: 1;
    height: 6px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}
.strength-fill { height: 100%; border-radius: 999px; transition: width .2s; }

/* Satır / 2 sütun */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Checkbox */
.form-check { display: flex; align-items: center; gap: 9px; }
.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-purple);
    cursor: pointer;
    flex: none;
}
.form-check-label { font-size: 13.5px; color: var(--auth-muted); cursor: pointer; }
.form-check-label a { color: var(--auth-purple); text-decoration: none; font-weight: 600; }
.form-check-label a:hover { text-decoration: underline; }

.forgot-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13.5px;
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { color: var(--auth-purple); }

/* Buton */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: opacity .15s, transform .05s;
    text-decoration: none;
}
.btn-primary {
    height: 54px;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
}
.btn-primary:hover { opacity: .93; }
.btn-primary:active { transform: translateY(1px); }
.btn-block { width: 100%; }

/* ---------- Alert ---------- */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.alert i { font-size: 15px; flex: none; }
.alert-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
[data-theme="dark"] .alert-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
[data-theme="dark"] .alert-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.35); }
[data-theme="dark"] .alert-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); }
[data-theme="dark"] .alert-info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.35); }

/* ---------- Footer (sol) ---------- */
.auth-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
}
.auth-footer p { margin: 0; }
.auth-footer a { color: var(--auth-purple); text-decoration: none; font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Sağ panel ---------- */
.auth-panel {
    flex: 1;
    border-radius: 80px 0 0 80px;
    padding: 48px 44px;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: none;
}
.auth-panel::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: url('../img/auth-bg.jpg') center / cover no-repeat;
    filter: blur(20px) saturate(1.5) brightness(0.92);
    pointer-events: none;
    z-index: 0;
}
/* Arka plan deseni — sunucudaki assets/img/background-pattern.png */
.auth-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/background-pattern.png?v=2') center / 200% auto no-repeat;
    opacity: 0.18;
    pointer-events: none;
}
/* İçerik desenin üstünde kalsın */
.auth-panel > * { position: relative; z-index: 1; }

.auth-panel-quote-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: rgba(255,255,255,.85);
    margin-bottom: 28px;
}

.auth-panel-stars { color: #fbbf24; font-size: 15px; letter-spacing: 3px; margin-bottom: 18px; }

.auth-panel-quote {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

.auth-panel-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 26px;
    color: rgba(255,255,255,.92);
    max-width: 460px;
}

.auth-panel-author { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.auth-panel-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Karşılama metni (ortalı) */
.auth-panel-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.auth-panel-welcome-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 22px;
    line-height: 1.2;
}
.auth-panel-welcome-text {
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 520px;
    color: rgba(255,255,255,.92);
}
.auth-panel-welcome-cta {
    font-weight: 700;
    font-size: 17px;
    margin-top: 6px;
    color: #fff;
}


.auth-panel-footer {
    margin-top: auto;
    padding-top: 32px;
    text-align: left;
}
.auth-panel-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.auth-panel-brand-logo {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.auth-panel-brand img { height: 30px; width: auto; display: block; }
.auth-panel-poweredby { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 500; }
.auth-panel-poweredby a { color: inherit; text-decoration: none; }
.auth-panel-poweredby a:hover { text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 999px) {
    .auth-left { padding: 32px 20px; }
}
@media (max-width: 480px) {
    .auth-title { font-size: 28px; }
    .form-row-2col { grid-template-columns: 1fr; }
}
