/* Login / allauth — tokens de theme.css */

.auth-page {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.auth-oidc-form {
	margin: 0;
}

.auth-card {
	width: 100%;
	max-width: 28rem;
	padding: 1.5rem 1.25rem;
	border: 1px solid var(--color-muted-10, rgba(0, 0, 0, 0.08));
	border-radius: 12px;
	background: var(--color-bg, #fff);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.auth-brand-logo {
	display: block;
	max-height: 200px;
	max-width: 200px;
	width: auto;
	height: auto;
	margin: 0 auto 1rem;
	object-fit: contain;
}

.auth-title {
	text-align: center;
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.auth-subtitle {
	font-size: 1.1rem;
	margin: 1.5rem 0 0.75rem;
	text-align: center;
}

.auth-lead {
	text-align: center;
	margin: 0 0 1.5rem;
	line-height: 1.45;
}

.auth-messages {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}

.auth-messages li {
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	margin-bottom: 0.35rem;
	background: var(--color-muted-05, #f5f5f5);
}

.auth-messages .error,
.auth-messages .errorlist,
.auth-field-error {
	background: #fde8e8;
	color: #9b1c1c;
	display: block;
	font-size: 0.85rem;
	margin-top: 0.25rem;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
}

.auth-providers {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.auth-providers li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.auth-provider-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem !important;
	text-decoration: none !important;
	border-radius: 8px;
	font-weight: 600;
	min-height: 3rem;
	cursor: pointer;
	border: none;
	font-family: inherit;
	font-size: 1rem;
}

a.auth-provider-btn,
button.auth-provider-btn {
	color: var(--color-primary-contrast, #fff);
	background-color: var(--color-primary, #007fff);
}

.auth-provider-logo {
	height: 28px;
	width: auto;
	max-width: 7rem;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 4px;
	background: transparent;
}

/* Classes .auth-provider--staff / .auth-provider-btn--staff no HTML (settings.staff);
   sem estilo por enquanto — use no CSS da instalação se quiser diferenciar. */

.auth-provider-hint {
	display: block;
	text-align: center;
	font-size: 0.8rem;
}

.auth-empty {
	text-align: center;
	opacity: 0.85;
}

.auth-footer {
	margin-top: 1.5rem;
	text-align: center;
}

.auth-form .auth-field {
	margin: 0 0 0.85rem;
}

.auth-form .auth-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form select,
.auth-form textarea,
.auth-card input[type="email"],
.auth-card input[type="text"],
.auth-card input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--color-sep, #ccc);
	border-radius: 6px;
	background: var(--color-bg, #fff);
	color: var(--color-fg, #222);
	font-family: inherit;
	font-size: 1rem;
}

.auth-connection-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem;
	border: 1px solid var(--color-muted-10, #eee);
	border-radius: 8px;
}

/* allauth {% element %} tags dentro do card */
.auth-allauth h1 {
	text-align: center;
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.auth-allauth h2 {
	font-size: 1.1rem;
	margin: 1.25rem 0 0.75rem;
	text-align: center;
}

.auth-allauth > p,
.auth-allauth form > p {
	text-align: center;
	line-height: 1.45;
	margin: 0.5rem 0 1rem;
}

.auth-allauth button,
.auth-allauth a[role="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	margin: 0.35rem 0;
	border-radius: 8px;
	font-weight: 600;
	min-height: 3rem;
	cursor: pointer;
	border: none;
	font-family: inherit;
	font-size: 1rem;
	text-decoration: none;
	background-color: var(--color-primary, #007fff);
	color: var(--color-primary-contrast, #fff);
}

.auth-allauth hr {
	border: 0;
	border-top: 1px solid var(--color-muted-10, #eee);
	margin: 1.25rem 0;
}

.auth-allauth ul {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0;
}

.auth-allauth label {
	display: block;
	margin: 0.35rem 0;
}
