/* ==========================================================================
   Yönetici girişi — Krem #f9f4da · Lacivert #242946 · Yeşil #c0ff72 · Pembe #e85a91
   ========================================================================== */

:root {
    --auth-ink: #242946;
    --auth-muted: #62657b;
    --auth-line: #d9d3b8;
    --auth-cream: #f9f4da;
    --auth-cream-deep: #f3edcc;
    --auth-card: #fffbee;
    --auth-lime: #c0ff72;
    --auth-lime-soft: #eefad8;
    --auth-pink: #e85a91;
    --auth-pink-deep: #b92860;
    --auth-pink-soft: #fde8f0;
    --auth-shadow: 6px 6px 0 rgba(36, 41, 70, 0.10);
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
    background:
        radial-gradient(circle at 12% 8%, rgba(192, 255, 114, 0.35), transparent 32%),
        radial-gradient(circle at 88% 92%, rgba(232, 90, 145, 0.18), transparent 34%),
        var(--auth-cream);
    color: var(--auth-ink);
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

.auth-wrap {
    width: 100%;
    max-width: 460px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-decoration: none;
    color: var(--auth-ink);
}

.auth-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid var(--auth-ink);
    padding: 5px;
    box-shadow: 3px 3px 0 rgba(36, 41, 70, 0.14);
}

.auth-brand span {
    font-family: 'Paytone One', Arial, sans-serif;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.auth-card {
    background: var(--auth-card);
    border: 1.5px solid var(--auth-ink);
    border-radius: 20px;
    box-shadow: var(--auth-shadow);
    padding: 30px 30px 26px;
}

.auth-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.auth-step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--auth-muted);
    background: var(--auth-cream-deep);
    border: 1.5px solid var(--auth-line);
    transition: all 0.2s ease;
}

.auth-step.is-done {
    background: var(--auth-lime);
    border-color: var(--auth-ink);
    color: var(--auth-ink);
}

.auth-step-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: var(--auth-line);
}

.auth-step-line.is-done { background: var(--auth-ink); }

.auth-eyebrow {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--auth-pink-deep);
    margin-bottom: 6px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-family: 'Paytone One', Arial, sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.auth-sub {
    margin: 0 0 18px;
    color: var(--auth-muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.auth-field > span {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--auth-line);
    border-radius: 11px;
    background: #fffdf4;
    color: var(--auth-ink);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--auth-ink);
    box-shadow: 0 0 0 3px rgba(192, 255, 114, 0.65);
}

.auth-code-input {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 22px !important;
    letter-spacing: 0.32em;
    padding: 13px 10px !important;
}

.auth-code-input--wide {
    font-size: 17px !important;
    letter-spacing: 0.14em;
}

.auth-btn {
    margin-top: 2px;
    padding: 13px 18px;
    border: 1.5px solid var(--auth-ink);
    border-radius: 999px;
    background: var(--auth-ink);
    color: var(--auth-cream);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    box-shadow: 0 3px 0 rgba(36, 41, 70, 0.22);
}

.auth-btn:hover {
    background: #333a63;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 rgba(36, 41, 70, 0.26);
}

.auth-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(36, 41, 70, 0.22);
}

.auth-hint {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--auth-muted);
}

.auth-error,
.auth-notice {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 12.5px;
    line-height: 1.55;
    border: 1.5px solid;
}

.auth-error {
    background: var(--auth-pink-soft);
    border-color: rgba(232, 90, 145, 0.55);
    color: var(--auth-pink-deep);
}

.auth-error p { margin: 0; }
.auth-error p + p { margin-top: 6px; }

.auth-notice {
    background: var(--auth-lime-soft);
    border-color: rgba(36, 41, 70, 0.28);
    color: var(--auth-ink);
}

.auth-list {
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--auth-muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.auth-list li + li { margin-top: 4px; }

.auth-secret-block {
    background: var(--auth-ink);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.auth-secret-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(249, 244, 218, 0.62);
    margin-bottom: 8px;
}

.auth-secret {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    letter-spacing: 0.16em;
    line-height: 1.6;
    color: var(--auth-lime);
    word-break: break-word;
    user-select: all;
}

.auth-secret-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.auth-secret-actions .auth-link-btn {
    color: var(--auth-cream);
    border-bottom-color: rgba(249, 244, 218, 0.35);
}

.auth-secret-actions .auth-link-btn:hover {
    color: var(--auth-lime);
    border-bottom-color: var(--auth-lime);
}

.auth-links {
    margin: 16px 0 0;
    text-align: center;
    font-size: 12px;
}

.auth-links a,
.auth-link-btn {
    color: var(--auth-pink-deep);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    background: none;
    padding: 0;
    cursor: pointer;
}

.auth-links a:hover,
.auth-link-btn:hover { border-bottom-color: currentColor; }

.auth-inline-form {
    margin: 14px 0 0;
    text-align: center;
}

.auth-foot {
    margin: 16px 2px 0;
    text-align: center;
    font-size: 10.5px;
    line-height: 1.6;
    color: var(--auth-muted);
}

/* --------------------------------------------------------------------------
   Güvenlik ayarları sayfası
   -------------------------------------------------------------------------- */

body.auth-page--wide { align-items: flex-start; }

.auth-wrap--wide { max-width: 820px; }

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

.sec-topbar .auth-brand { margin-bottom: 0; }

.sec-topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.sec-logout-form { margin: 0; }

.sec-title {
    margin: 0 0 8px;
    font-family: 'Paytone One', Arial, sans-serif;
    font-weight: 400;
    font-size: 29px;
    letter-spacing: -0.6px;
}

.sec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.sec-card {
    background: var(--auth-card);
    border: 1.5px solid var(--auth-ink);
    border-radius: 18px;
    box-shadow: 4px 4px 0 rgba(36, 41, 70, 0.09);
    padding: 22px 22px 20px;
    margin-bottom: 16px;
}

.sec-grid .sec-card { margin-bottom: 0; }

.sec-card h2 {
    margin: 0 0 10px;
    font-family: 'Paytone One', Arial, sans-serif;
    font-weight: 400;
    font-size: 19px;
    letter-spacing: -0.4px;
}

.sec-card .auth-sub { margin-bottom: 14px; }

.sec-card .auth-hint { margin-bottom: 14px; }

.sec-card--codes {
    border-color: var(--auth-ink);
    background: linear-gradient(180deg, var(--auth-lime-soft), var(--auth-card) 55%);
}

.sec-code-grid {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.sec-code-grid li {
    background: var(--auth-ink);
    border-radius: 9px;
    padding: 9px 12px;
    text-align: center;
}

.sec-code-grid code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--auth-lime);
}

.sec-code-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sec-code-actions form { margin: 0; }

.sec-code-actions .auth-btn { margin-top: 0; }

.auth-btn--ghost {
    background: transparent;
    color: var(--auth-ink);
    box-shadow: none;
    border-color: var(--auth-ink);
}

.auth-btn--ghost:hover {
    background: var(--auth-cream-deep);
    color: var(--auth-ink);
    box-shadow: none;
}

.sec-meta {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sec-meta > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--auth-line);
}

.sec-meta > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sec-meta dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--auth-muted);
}

.sec-meta dd {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.sec-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid var(--auth-ink);
    font-size: 11px;
    font-weight: 600;
}

.sec-badge--on { background: var(--auth-lime); }
.sec-badge--off { background: var(--auth-pink-soft); border-color: var(--auth-pink); color: var(--auth-pink-deep); }

.sec-table-wrap { overflow-x: auto; }

.sec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.sec-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--auth-muted);
    padding: 0 10px 8px;
    border-bottom: 1.5px solid var(--auth-line);
}

.sec-table td {
    padding: 9px 10px;
    border-bottom: 1px dashed var(--auth-line);
    vertical-align: top;
}

.sec-table tr:last-child td { border-bottom: 0; }

.sec-nowrap { white-space: nowrap; }

.sec-ua {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--auth-muted);
}

@media (max-width: 720px) {
    .sec-grid { grid-template-columns: 1fr; }
    .sec-title { font-size: 25px; }
}

@media (max-width: 520px) {
    body.auth-page { padding: 24px 14px; align-items: flex-start; }
    .auth-card { padding: 24px 20px 22px; border-radius: 17px; }
    .auth-card h1 { font-size: 22px; }
    .auth-brand { margin-bottom: 14px; }
    .sec-card { padding: 18px 16px 16px; }
    .sec-code-grid { grid-template-columns: 1fr; }
}
