/* İzmirimKart kurumsal giriş/çıkış ekranı stilleri.
   Renk paleti tek değişkenden yönetilir: --brand (kurumsal renk gelince burayı değiştir). */

:root {
    --brand: #00279a;        /* İzmirimKart kurumsal mavi */
    --brand-hover: #002287;
    --bg-top: #eef2fb;
    --bg-bottom: #f7f9fd;
    --card: #ffffff;
    --text: #1f2733;
    --muted: #6b7686;
    --border: #d8dee9;
    --danger: #c0392b;
    --danger-bg: #fdecea;
    --danger-border: #f5c6c2;
    --radius: 14px;
}

* { box-sizing: border-box; }

input, button { font-family: inherit; }

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.auth-shell {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 32, 64, 0.08);
    padding: 36px 32px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 8px;
}

.auth-brand img {
    height: 52px;
    width: auto;
    max-width: 100%;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 4px;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin: 0 0 24px;
}

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

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

.form-control {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 39, 154, 0.15);
}

/* Ülke seçici + telefon alanı */

select.form-control {
    cursor: pointer;
    /* Tarayıcının kendi ok işareti korunur; CSP inline background-image'a izin vermiyor. */
}

.phone-number {
    letter-spacing: 0.5px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.form-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.form-check label {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
    font-weight: 400;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease;
}

.btn-primary:hover { background: var(--brand-hover); }

.auth-secondary {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
}

.auth-secondary:hover { text-decoration: underline; }

.auth-errors {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-errors ul { margin: 0; padding-left: 18px; }
.auth-errors ul:empty { display: none; }

/* İki adımlı doğrulama */

.auth-code {
    text-align: center;
    font-size: 18px;
    letter-spacing: 6px;
}

.auth-qr {
    display: flex;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.auth-qr svg {
    display: block;
    width: 200px;
    height: 200px;
}

.auth-key {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    letter-spacing: 1px;
    word-break: break-all;
    background: var(--bg-top);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    margin: 0 0 20px;
}

.auth-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin: 0 0 8px;
}

.auth-note-last { margin: 20px 0 0; }

.logged-out { text-align: center; }
.logged-out p { color: var(--muted); font-size: 14px; }

iframe.signout { display: none; }

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
}
