:root {
    --bg-color: #020617;
    --bg-gradient-1: #0f172a;
    --bg-gradient-2: #020617;
    --card-bg: rgba(15, 23, 42, 0.92);
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: rgba(148, 163, 184, 0.35);
    --error: #ef4444;
    --success: #22c55e;
    --radius-xl: 18px;
    --radius-full: 999px;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.65);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", sans-serif;
}

body.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, #0ea5e9 0, transparent 55%),
        radial-gradient(circle at bottom right, #22c55e 0, transparent 55%),
        linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2));
    color: var(--text);
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 55%),
                var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 28px 26px 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.3), transparent, rgba(59, 130, 246, 0.3));
    opacity: 0.15;
    pointer-events: none;
}

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

.auth-logo-text {
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f9fafb;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    color: var(--muted);
}

.auth-form {
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-group input::placeholder {
    color: #6b7280;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
    background-color: rgba(15, 23, 42, 0.95);
}

.btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--accent), #4ade80);
    color: #022c22;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.45);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #22c55e);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.45);
}

.auth-footer {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    position: relative;
    z-index: 1;
}

.auth-footer a {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
}

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

.alert {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    padding: 9px 11px;
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.alert strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #bbf7d0;
}

/* reCAPTCHA alanı */
.form-group .g-recaptcha {
    transform-origin: left top;
    margin-top: 6px;
}

/* Küçük ekran uyumu */
@media (max-width: 480px) {
    .auth-card {
        padding: 22px 18px 18px;
    }

    .auth-header h1 {
        font-size: 21px;
    }

    .form-group input {
        font-size: 13px;
    }
}


/* ================= Dashboard (Anasayfa) ================= */

body.dashboard-body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background:
        radial-gradient(circle at top left, #0ea5e9 0, transparent 55%),
        radial-gradient(circle at bottom right, #22c55e 0, transparent 55%),
        linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2));
    color: var(--text);
}

.dashboard-shell {
    width: 100%;
    max-width: 1120px;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 55%),
                var(--card-bg);
    border-radius: 24px;
    padding: 22px 22px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.dashboard-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.2), transparent, rgba(59, 130, 246, 0.25));
    opacity: 0.22;
}

.dashboard-inner {
    position: relative;
    z-index: 1;
}

/* Topbar */

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dash-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-logo-text {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.dash-title {
    font-size: 20px;
    font-weight: 600;
    color: #f9fafb;
}

/* User pill / logout */

.dash-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-user-pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 13px;
    color: var(--muted);
}

.dash-user-pill strong {
    color: #e5e7eb;
    font-weight: 600;
}

.btn-ghost {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.8);
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 0.92);
    border-color: var(--accent);
    color: #e5e7eb;
    transform: translateY(-1px);
}

/* Main layout */

.dash-main {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .dash-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Hero / primary card */

.dash-hero {
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.94));
}

.dash-hero-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f9fafb;
    margin-bottom: 6px;
}

.dash-hero-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 14px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--muted);
    background: rgba(15, 23, 42, 0.85);
    margin-bottom: 10px;
}

.badge-pill span {
    font-weight: 600;
    color: #e5e7eb;
}

.badge-success {
    border-color: rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

/* Actions */

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.dash-actions .btn-primary,
.dash-actions .btn-ghost {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* Secondary column */

.dash-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-card {
    border-radius: 16px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.92);
}

.dash-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.dash-card-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.dash-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.dash-link-list a {
    font-size: 13px;
    color: #a5b4fc;
    text-decoration: none;
}

.dash-link-list a:hover {
    text-decoration: underline;
}

/* Footer */

.dash-footer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 65, 85, 0.9);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.dash-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

.dash-footer-links a:hover {
    text-decoration: underline;
    color: #e5e7eb;
}



/* ================= Legal / Static Document Pages ================= */

body.doc-body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background:
        radial-gradient(circle at top left, #0ea5e9 0, transparent 55%),
        radial-gradient(circle at bottom right, #22c55e 0, transparent 55%),
        linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2));
    color: var(--text);
}

.doc-shell {
    width: 100%;
    max-width: 880px;
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 55%),
                var(--card-bg);
    border-radius: 24px;
    padding: 24px 22px 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.doc-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(34, 197, 94, 0.2), transparent, rgba(59, 130, 246, 0.25));
    opacity: 0.22;
}

.doc-inner {
    position: relative;
    z-index: 1;
}

.doc-header-eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.doc-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f9fafb;
    margin-bottom: 4px;
}

.doc-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}

.doc-content {
    font-size: 14px;
    color: var(--text);
}

.doc-content h2 {
    font-size: 16px;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.doc-content h3 {
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.doc-content p {
    margin-bottom: 8px;
    color: var(--muted);
}

.doc-content ul,
.doc-content ol {
    margin: 0 0 10px 18px;
    padding: 0;
    color: var(--muted);
}

.doc-footer-links {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(51, 65, 85, 0.9);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

.doc-footer-links a {
    color: #a5b4fc;
    text-decoration: none;
}

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

@media (max-width: 640px) {
    .doc-shell {
        padding: 20px 16px 18px;
    }

    .doc-title {
        font-size: 20px;
    }
}
