/*
 * Telas de entrada do admin (login, codigo por e-mail, primeiro acesso, esqueci a senha, senha nova): cartao central
 * sobre fundo grafite com brilho dourado. Markup em class/AuthPage.class.php. Sem sb-admin/custom.css nessas telas
 * (o custom.css da margem em todo button).
 */
:root {
	--auth-ink: #1f2024;
	--auth-muted: #6b6f7b;
	--auth-line: #e3e5ec;
	--auth-field: #f7f8fa;
	--auth-gold: #c9a24b;
	--auth-gold-dark: #8f6f24;
}

* { box-sizing: border-box; }

body.auth {
	margin: 0;
	min-height: 100vh;
	display: flex;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--auth-ink);
	-webkit-font-smoothing: antialiased;
	background-color: #161618;
	background-image:
		radial-gradient(1100px 620px at 12% -12%, rgba(201, 162, 75, .24), transparent 62%),
		radial-gradient(900px 520px at 110% 112%, rgba(201, 162, 75, .13), transparent 60%),
		linear-gradient(160deg, #26262a 0%, #131315 100%);
}

.auth-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
}

.auth-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 18px;
	padding: 40px 36px 32px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04);
}
.auth-card::before {
	content: "";
	position: absolute;
	left: 40px;
	right: 40px;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, transparent, var(--auth-gold), transparent);
}
.auth-card.wide { max-width: 580px; }

.auth-logo { display: block; width: 200px; max-width: 70%; margin: 0 auto 26px; }

.auth-title {
	margin: 0 0 6px;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.25;
}
.auth-sub {
	margin: 0 0 26px;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
	color: var(--auth-muted);
}
.auth-sub b { color: var(--auth-ink); font-weight: 600; }

.field { margin-bottom: 16px; }
.field > label, .label, .label-row > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #33353d; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-row .link { font-size: 13px; }

.input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: var(--auth-ink);
	background: var(--auth-field);
	border: 1px solid var(--auth-line);
	border-radius: 10px;
	outline: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input:focus { background: #fff; border-color: var(--auth-gold); box-shadow: 0 0 0 4px rgba(201, 162, 75, .18); }
.input::placeholder { color: #a7abb5; }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.eye {
	position: absolute;
	top: 50%;
	right: 5px;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #8a8f9c;
	cursor: pointer;
}
.eye:hover { color: var(--auth-ink); background: #eef0f4; }
.eye:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201, 162, 75, .35); }

.code-input {
	height: 62px;
	padding-left: 24px;
	text-align: center;
	font-family: "SF Mono", Menlo, Consolas, monospace;
	font-size: 30px;
	letter-spacing: 12px;
}
.code-input::placeholder { letter-spacing: 12px; color: #c9ccd3; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: #44474f; cursor: pointer; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--auth-ink); }

.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 4px 0 22px; }

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	margin: 0;
	border: 0;
	border-radius: 10px;
	background: var(--auth-ink);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, transform .05s;
}
.btn:hover { background: #000; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(201, 162, 75, .4); }
.btn .fa { font-size: 13px; }
.btn-ghost { background: #fff; color: var(--auth-ink); border: 1px solid var(--auth-line); }
.btn-ghost:hover { background: #f6f7f9; color: var(--auth-ink); }

.link { font-size: 14px; font-weight: 600; color: var(--auth-gold-dark); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-btn { margin: 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--auth-gold-dark); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { font-weight: 500; color: #9aa0ab; cursor: default; text-decoration: none; }

.auth-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--auth-muted); }
.divider { height: 1px; margin: 24px 0 18px; border: 0; background: var(--auth-line); }

.alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
}
.alert .fa { margin-top: 2px; }
.alert-success { background: #ecf8f1; color: #16603b; border-color: #cdeedb; }
.alert-warning { background: #fff7e6; color: #7a4d00; border-color: #fde7b8; }
.alert-danger { background: #fdeeee; color: #9b1c1c; border-color: #f8d2d2; }
.alert-info { background: #eef4fe; color: #1e40af; border-color: #d6e3fc; }

.rules { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.rules .fa { width: 16px; }
.text-muted { color: #9aa0ab; }
.text-success { color: #16803d; }
.hint { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--auth-muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.state-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #f7f0df;
	color: var(--auth-gold-dark);
	font-size: 22px;
}
.stack { display: grid; gap: 10px; }

.auth-foot { margin: 22px 0 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.auth-foot .fa { margin-right: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 560px) {
	.grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.auth-wrap { justify-content: flex-start; padding: 24px 12px; }
	.auth-card { padding: 32px 22px 26px; border-radius: 14px; }
	.auth-card::before { left: 24px; right: 24px; }
}
