/* Ardenfall: one-step registration, welcome page, Google sign-in buttons (mobile first).
   Loaded by templates/ardenfall/index.php. Source: /opt/ardenfall/myaac/signup/web/templates/ardenfall/signup.css */

/* ---------- Google button (Google Identity branding: white, #747775 outline, Roboto Medium 14px, colour G) ---------- */
.gsi-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	box-sizing: border-box; height: 44px; padding: 0 16px 0 12px; max-width: 400px;
	background: #fff; border: 1px solid #747775; border-radius: 22px;
	color: #1f1f1f !important; font-family: Roboto, Arial, sans-serif; font-weight: 500; font-size: 14px;
	letter-spacing: .25px; line-height: 20px; text-decoration: none !important; white-space: nowrap;
	cursor: pointer; transition: background-color .2s, box-shadow .2s; vertical-align: middle;
	-webkit-tap-highlight-color: transparent;
}
.gsi-btn:hover { background: #f8f8f8; box-shadow: 0 1px 2px 0 rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15); }
.gsi-btn:active { background: #ececec; }
.gsi-btn:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
.gsi-btn .gsi-icon, .afs-gchip .gsi-icon { display: inline-flex; width: 20px; height: 20px; flex: 0 0 20px; }
.gsi-btn .gsi-logo, .afs-gchip .gsi-logo { width: 20px; height: 20px; display: block; }
.gsi-btn.gsi-block { display: flex; width: 100%; margin: 0 auto; }
.afs-google .gsi-btn.gsi-block, .afs-narrow .gsi-btn.gsi-block { max-width: none; }
.gsi-text { overflow: hidden; text-overflow: ellipsis; }
/* left login box (narrow column) */
.af-login .gsi-btn { width: 100%; height: 40px; padding: 0 10px; gap: 8px; font-size: 13px; letter-spacing: 0; }

/* ---------- layout ---------- */
.afs { color: var(--af-ink, #1f252c); font-size: 16px; line-height: 1.45; }
.afs-card { max-width: 460px; margin: 4px auto 8px; }
.afs-narrow { max-width: 420px; }
.afs p { margin: 0 0 12px; }
.afs-lead { color: var(--af-ink-soft, #4a525c); margin: 0 0 14px; font-size: 15px; }
.afs-lead:empty { display: none; }
.afs-perk { background: #fff6dd; border-left: 4px solid var(--af-gold, #e2b340); padding: 8px 12px; border-radius: 6px; font-size: 15px; }
.afs-note { background: #fff6dd; border: 1px solid #ecd9a2; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
.afs-err { color: #a3261b; background: #fdecea; border: 1px solid #f3c2bc; padding: 8px 12px; border-radius: 8px; font-size: 15px; margin: 6px 0 10px !important; }
.afs-field .afs-err { margin: 6px 0 0 !important; padding: 6px 10px; }
.afs-err a { color: #7a1a12; font-weight: 600; }

/* "or" divider */
.afs-google { margin: 4px 0 16px; }
.afs-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--af-ink-soft, #4a525c); font-size: 14px; }
.afs-or::before, .afs-or::after { content: ""; flex: 1; height: 1px; background: #d6cfc2; }
.afs-google .afs-or:first-child { margin: 4px 0 16px; }

/* Google account chip (sign-up / link forms) */
.afs-gchip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d6cfc2; border-radius: 22px; padding: 8px 14px; margin: 0 0 16px; font-size: 15px; }
.afs-gchip > span:nth-child(2) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.afs-gchip a { flex: 0 0 auto; font-size: 14px; color: var(--af-link, #1e5c86); }

/* ---------- form ---------- */
.afs-form { margin: 0; }
.afs-field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.afs-field > label, .afs-field > legend { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; padding: 0; color: var(--af-ink, #1f252c); }
.afs input[type="email"], .afs input[type="text"], .afs input[type="password"] {
	display: block; width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; margin: 0;
	font-family: var(--af-font, sans-serif); font-size: 16px; color: #1f252c;
	background: #fff; border: 1px solid #bdb5a6; border-radius: 10px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.afs input:focus { outline: none; border-color: var(--af-gold-deep, #b8871f); box-shadow: 0 0 0 3px rgba(226,179,64,.35); }
.afs input[aria-invalid="true"] { border-color: #c0392b; }
.afs-help { font-size: 13.5px !important; color: var(--af-ink-soft, #4a525c); margin: 6px 0 0 !important; }
.afs-pw, .afs-namerow { display: flex; gap: 8px; }
.afs-pw input, .afs-namerow input { flex: 1 1 auto; min-width: 0; }
.afs-pw-toggle, .afs-random {
	flex: 0 0 auto; min-width: 76px; height: 48px; padding: 0 14px; border-radius: 10px; cursor: pointer;
	font-family: var(--af-font, sans-serif); font-size: 15px; font-weight: 700;
	background: #fff; color: #5c4210; border: 1px solid var(--af-gold-deep, #b8871f);
}
.afs-pw-toggle:hover, .afs-random:hover { background: #fff6dd; }
.afs-random:disabled { opacity: .6; cursor: wait; }
.afs-js { display: none; }
.afs-has-js .afs-js { display: inline-block; }
.afs-status:empty { min-height: 0 !important; margin: 0 !important; }
.afs-status { min-height: 20px; font-size: 14px !important; margin: 6px 0 0 !important; color: var(--af-ink-soft, #4a525c); }
.afs-status.is-ok { color: #1e7a4c; font-weight: 600; }
.afs-status.is-ok::before { content: "\2713  "; }
.afs-status.is-bad { color: #a3261b; }

/* sex: two big buttons */
.afs-sex { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.afs-sex > legend, .afs-sex > .afs-err, .afs-sex > .afs-help { grid-column: 1 / -1; }
.afs-sex > legend { float: left; width: 100%; }
.afs-sexopt { position: relative; display: block; cursor: pointer; margin: 0; }
.afs-sexopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.afs-sexopt span {
	display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; box-sizing: border-box;
	border: 2px solid #bdb5a6; border-radius: 12px; background: #fff; font-weight: 700; font-size: 16px; color: #1f252c;
	transition: border-color .15s, background-color .15s;
}
.afs-sym { font-size: 22px; line-height: 1; color: #6b7480; }
.afs-sexopt input:checked + span { border-color: var(--af-gold-deep, #b8871f); background: #fff6dd; box-shadow: 0 0 0 1px var(--af-gold-deep, #b8871f) inset; }
.afs-sexopt input:checked + span .afs-sym { color: #8a6400; }
.afs-sexopt input:focus-visible + span { outline: 3px solid rgba(226,179,64,.6); outline-offset: 2px; }

.afs-invite { background: #eef6f1; border: 1px solid #bfe0cc; padding: 8px 12px; border-radius: 8px; font-size: 15px; }

/* opt-in checkbox (plugins/ardenfall-mail, compact) */
.afs-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--af-ink-soft, #4a525c); margin: 0 0 16px; cursor: pointer; line-height: 1.4; }
.afs-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--af-gold-deep, #b8871f); }
.afs-check small { display: block; font-size: 12.5px; margin-top: 3px; }

.afs-submit, .Content .afs button.afs-submit {
	display: block; min-width: 0; padding: 0; width: 100%; height: 54px; margin: 4px 0 10px; border-radius: 12px; cursor: pointer;
	font-family: var(--af-font, sans-serif); font-size: 18px; font-weight: 700; color: #22180a;
	background: linear-gradient(180deg, #f0c85a, var(--af-gold-deep, #b8871f)); border: 1px solid #8a6512;
	box-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.afs-submit:hover { filter: brightness(1.06); }
.afs-submit:disabled { opacity: .7; cursor: wait; }
.afs-legal { font-size: 13.5px !important; color: var(--af-ink-soft, #4a525c); text-align: center; }
.afs-alt { text-align: center; font-size: 15px; margin-top: 14px !important; }
.afs a { color: var(--af-link, #1e5c86); }

/* ---------- buttons / welcome ---------- */
.afs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.afs-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 8px 18px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none !important; }
.afs-btn-gold { background: linear-gradient(180deg, #f0c85a, var(--af-gold-deep, #b8871f)); color: #22180a !important; border: 1px solid #8a6512; }
.afs-btn-ghost { background: #fff; color: #5c4210 !important; border: 1px solid var(--af-gold-deep, #b8871f); }
.afs-btn-big { flex: 1 1 200px; min-height: 52px; font-size: 17px; }
.afs-done { font-size: 18px; font-weight: 600; }
.afs-number { background: var(--af-panel, #1a2430); color: var(--af-text, #e7e3d8); border-radius: 14px; padding: 16px; margin: 6px 0 14px; border: 1px solid var(--af-line, #2e3d4e); }
.afs-number-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--af-muted, #97a3b0); }
.afs-number-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; }
.afs-number-value { font-family: "Source Sans 3", Arial, sans-serif; font-size: 44px; font-weight: 700; letter-spacing: .08em; color: var(--af-gold, #e2b340); line-height: 1.1; user-select: all; -webkit-user-select: all; }
.afs-copy { height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--af-gold, #e2b340); background: transparent; color: var(--af-gold, #e2b340); font-weight: 700; font-size: 16px; cursor: pointer; font-family: var(--af-font, sans-serif); }
.afs-copy.is-done { background: var(--af-green, #3fae7c); border-color: var(--af-green, #3fae7c); color: #fff; }
.afs .afs-number .afs-number-hint, .afs .afs-number .afs-number-hint b { color: var(--af-text, #e7e3d8) !important; }
.afs-number-hint { font-size: 14.5px !important; margin: 0 !important; }
.afs-h { font-size: 17px; margin: 18px 0 8px; color: var(--af-ink, #1f252c); }
.afs-steps { margin: 0 0 12px 20px; padding: 0; }
.afs-steps li { margin: 0 0 6px; }

/* ---------- login page / account management ---------- */
.afs-newplayer { margin-top: 22px; padding-top: 16px; border-top: 1px solid #d6cfc2; text-align: center; }
.afs-newplayer .afs-btn { width: 100%; }
.afs-newplayer .afs-h { margin-top: 0; }
.afs-loginalt { max-width: 400px; margin: 14px auto 18px; }
.afg-manage .gsi-btn { height: 40px; }
.afg-manage-actions { display: inline-flex; gap: 8px; margin-left: 8px; flex-wrap: wrap; vertical-align: middle; }
.afg-small, .Content .afg-manage button.afg-small { display: inline-block; min-width: 0; height: auto; line-height: 1.4; background: #fff; padding: 3px 12px; border-radius: 4px; border: 1px solid #b8860b; background: #fff; color: #8a6400 !important; font-weight: bold; font-size: 13px; cursor: pointer; text-decoration: none; font-family: inherit; }
.afg-hint { font-size: 11px; color: #555; margin-top: 4px; }
.afg-ok { color: green; font-weight: bold; margin-bottom: 4px; }

@media (min-width: 720px) {
	.afs-card { margin-top: 10px; }
	.afs-number-value { font-size: 52px; }
}
@media (max-width: 360px) {
	.afs-pw-toggle, .afs-random { min-width: 64px; padding: 0 10px; }
	.afs-number-value { font-size: 38px; }
}

/* Google: choose one of several accounts with the same e-mail (system/pages/account/google.php) */
.Content .afs button.afs-choice { display: block; width: 100%; min-height: 52px; margin: 0 0 10px; padding: 8px 16px; text-align: left;
	background: #fff; color: #3d2c0a; border: 1px solid var(--af-gold-deep, #b8871f); border-radius: 10px; font-size: 16px; font-weight: 600; }
.Content .afs button.afs-choice:hover { background: #fff6dd; filter: none; }
.afs-choice small { font-weight: 400; color: var(--af-ink-soft, #4a525c); margin-left: 6px; }
/* long logins on the welcome page */
.afs-number-value.afs-long { font-size: 30px; letter-spacing: .02em; overflow-wrap: anywhere; }
