/*
 * fussball-news.de – Anmeldung, Profil und Vereinswahl (assets/auth.js) im Stil der App:
 * keine Rundungen, 2-px-Rahmen, Grün als Akzent, Apple schwarz, Google mit Rahmen.
 */

/* Profil-Symbol im Kopf: angemeldet Wappen bzw. Initiale statt Figur */
.fn-account { position: relative; }
.fn-account-face:empty { display: none; }
.fn-account.is-signed-in .fn-account-icon { display: none; }
.fn-account-face { display: grid; place-items: center; }
.fn-account-face img { width: 28px; height: 28px; object-fit: contain; }
.fn-account-initial {
	display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	background: var(--fn-accent); color: var(--fn-accent-ink); font: 800 13px var(--fn-font);
}
.fn-account-initial--big { width: 48px; height: 48px; font-size: 20px; }
.fn-tabbar [data-fn-account].is-signed-in { color: var(--fn-accent-text); }

/* Fenster */
.fn-auth-dialog {
	width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0;
	border: 2px solid var(--fn-line-strong); border-radius: 0; background: var(--fn-bg); color: var(--fn-ink);
	font-family: var(--fn-font);
}
.fn-auth-dialog::backdrop { background: rgba(16, 19, 20, .55); }
.fn-auth-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 18px; background: var(--fn-bg); border-bottom: 2px solid var(--fn-line-strong); }
.fn-auth-head h2 { margin: 0; font: 800 22px/1.1 var(--fn-font); letter-spacing: -.02em; }
.fn-auth-body { padding: 18px; }
.fn-auth-reason { margin: 0 0 10px; font: 800 15px/1.35 var(--fn-font); }
.fn-account-face img.is-photo { border-radius: 50%; object-fit: cover; }
.fn-auth-intro { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--fn-muted); }
.fn-auth-intro strong { color: var(--fn-ink); }

.fn-auth-providers { display: grid; gap: 8px; }
.fn-auth-btn {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px;
	border: 2px solid var(--fn-line-strong); background: var(--fn-bg); color: var(--fn-ink);
	font: 800 14px var(--fn-font); cursor: pointer;
}
.fn-auth-btn--apple { background: #000; border-color: #000; color: #fff; }
.fn-auth-btn:hover { border-color: var(--fn-accent); }
.fn-auth-btn:disabled, .fn-auth-submit:disabled { opacity: .55; cursor: default; }

.fn-auth-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font: 800 11px var(--fn-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fn-muted); }
.fn-auth-or::before, .fn-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--fn-line); }

.fn-auth-form { display: grid; gap: 10px; }
.fn-auth-form label { display: grid; gap: 5px; font: 800 11px var(--fn-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fn-muted); }
.fn-auth-form input {
	height: 46px; padding: 0 12px; border: 1px solid var(--fn-line); border-radius: 0; background: var(--fn-bg); color: var(--fn-ink);
	font: 500 16px var(--fn-font); letter-spacing: 0; text-transform: none;
}
.fn-auth-form input:focus { outline: none; border-color: var(--fn-line-strong); }
.fn-auth-submit {
	height: 48px; margin-top: 4px; border: 0; background: var(--fn-accent); color: var(--fn-accent-ink);
	font: 800 12px var(--fn-font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.fn-auth-submit:hover { background: var(--fn-ink); color: var(--fn-bg); }
.fn-auth-submit--line { width: 100%; background: none; color: var(--fn-ink); box-shadow: inset 0 0 0 2px var(--fn-line-strong); }
.fn-auth-error { margin: 0; padding: 10px 12px; background: #fbe9e7; color: #a3261b; font-size: 13.5px; line-height: 1.4; }
.fn-auth-ok { margin: 0; padding: 10px 12px; background: color-mix(in srgb, var(--fn-accent) 14%, transparent); color: var(--fn-accent-text); font-size: 13.5px; line-height: 1.4; }

.fn-auth-switch { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 14px 0 0; }
.fn-auth-switch button { padding: 6px 0; border: 0; background: none; font: 700 13px var(--fn-font); color: var(--fn-accent-text); cursor: pointer; }
.fn-auth-switch button:hover { text-decoration: underline; }
.fn-auth-legal { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--fn-muted); }
.fn-auth-legal a { text-decoration: underline; }

/* Profil */
.fn-account-me { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--fn-line); }
.fn-account-me img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.fn-account-name { margin: 0; font: 800 17px/1.2 var(--fn-font); }
.fn-account-mail { margin: 2px 0 0; font-size: 13px; color: var(--fn-muted); }
.fn-account-club { padding: 16px 0; border-bottom: 1px solid var(--fn-line); }
.fn-account-clubname { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font: 800 18px var(--fn-font); }
.fn-account-clubname img { width: 32px; height: 32px; object-fit: contain; }
.fn-account-hint { margin: 6px 0 12px; font-size: 14px; color: var(--fn-muted); }
.fn-account-link { display: inline-block; margin-top: 12px; font: 700 13px var(--fn-font); color: var(--fn-accent-text); }
.fn-account-logout { margin-top: 14px; padding: 8px 0; border: 0; background: none; font: 800 12px var(--fn-font); letter-spacing: .08em; text-transform: uppercase; color: #a3261b; cursor: pointer; }

/* Vereinswahl */
.fn-auth-body h3.fn-kicker { margin: 16px 0 8px; }
.fn-auth-body h3.fn-kicker:first-of-type { margin-top: 0; }
.fn-clubpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fn-clubpick button {
	display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--fn-line);
	background: none; color: var(--fn-ink); font: 700 13px/1.2 var(--fn-font); text-align: left; cursor: pointer;
}
.fn-clubpick button:hover { border-color: var(--fn-line-strong); }
.fn-clubpick button[aria-pressed="true"] { border-color: var(--fn-accent); box-shadow: inset 0 0 0 1px var(--fn-accent); }
.fn-clubpick img { width: 26px; height: 26px; object-fit: contain; flex: none; }

/* Merkliste im Profil */
.fn-account-marks { padding: 16px 0 4px; border-bottom: 1px solid var(--fn-line); }
.fn-account-marks ul { margin: 8px 0 0; padding: 0; list-style: none; }
.fn-account-marks a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--fn-line); font: 700 14px/1.25 var(--fn-font); }
.fn-account-marks li:first-child a { border-top: 0; }
.fn-account-marks img { width: 56px; height: 42px; object-fit: cover; flex: none; }

/* Benutzername */
.fn-username-field { display: flex !important; flex-direction: row !important; align-items: center; gap: 4px !important; height: 46px; padding: 0 12px; border: 1px solid var(--fn-line); background: var(--fn-bg); }
.fn-username-field span { font: 800 16px var(--fn-font); color: var(--fn-accent-text); }
.fn-username-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; text-transform: none; }
.fn-username-field:focus-within { border-color: var(--fn-line-strong); }
.fn-auth-body > .fn-kicker { margin-bottom: 6px; }
.fn-account-edit { margin-left: auto; padding: 6px 0; border: 0; background: none; font: 800 11px var(--fn-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fn-accent-text); cursor: pointer; }
.fn-account-me img.is-crest { border-radius: 0; object-fit: contain; }
