
/* --- Auth (Login/Registro/Verificação) --- */
.auth-page{
	padding: 120px 0 60px;
}

.auth-author{
	margin: 28px auto 18px;
	text-align: center;
	font-size: 11px;
	color: rgb(var(--foreground-rgb, 244 232 212) / 0.5);
}
.auth-author a{
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
	transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.auth-author a:hover,
.auth-author a:focus-visible{
	color: var(--gold, var(--accent, currentColor));
	text-decoration-color: currentColor;
}

.auth-wrap{
	width: min(1080px, calc(100vw - 40px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 22px;
	align-items: stretch;
}

@media (max-width: 980px){
	.auth-page{ padding: 104px 0 54px; }
	.auth-wrap{ grid-template-columns: 1fr; }
}

.auth-side{
	border-radius: 22px;
	border: 1px solid rgb(var(--primary-rgb) / 0.14);
	background: rgb(0 0 0 / 0.22);
	backdrop-filter: blur(10px);
	padding: 24px;
	display:flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 380px;
}

.auth-side h1{
	margin: 0;
	font-size: 28px;
	font-weight: 950;
	letter-spacing: -0.02em;
}

.auth-side p{
	margin: 10px 0 0;
	color: rgb(242 242 242 / 0.70);
	line-height: 1.45;
	max-width: 52ch;
}

.auth-side .auth-bullets{
	margin-top: 18px;
	display:flex;
	flex-direction: column;
	gap: 10px;
}

.auth-bullet{
	display:flex;
	gap: 10px;
	align-items:flex-start;
	color: rgb(242 242 242 / 0.72);
	font-size: 13px;
}

.auth-bullet .dot{
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgb(var(--primary-rgb) / 0.85);
	margin-top: 4px;
	flex: 0 0 10px;
}

.auth-card{
	border-radius: 22px;
	border: 1px solid rgb(var(--primary-rgb) / 0.18);
	background: rgb(var(--background-rgb) / 0.35);
	box-shadow: 0 18px 60px rgb(0 0 0 / 0.35);
	padding: 22px;
}

.auth-tabs{
	display:flex;
	gap: 10px;
}

.auth-tab{
	flex: 1;
	border-radius: 999px;
	padding: 10px 12px;
	border: 1px solid rgb(255 255 255 / 0.10);
	background: rgb(0 0 0 / 0.18);
	color: rgb(242 242 242 / 0.70);
	font-weight: 900;
	cursor:pointer;
}
.auth-tab.is-active{
	border-color: rgb(var(--primary-rgb) / 0.30);
	background: rgb(var(--primary-rgb) / 0.10);
	color: var(--primary);
}

.auth-panel{ display:none; margin-top: 16px; }
.auth-panel.is-active{ display:block; }

.auth-form{
	display:flex;
	flex-direction: column;
	gap: 12px;
}

.auth-field{
	display:flex;
	flex-direction: column;
	gap: 8px;
}

.auth-field label{
	font-weight: 900;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgb(242 242 242 / 0.70);
}

.auth-field .input{
	width: 100%;
}

.auth-row{
	display:flex;
	gap: 10px;
	justify-content: space-between;
	align-items:center;
}

.auth-hint{
	font-size: 12px;
	color: rgb(242 242 242 / 0.60);
	line-height: 1.35;
}

.auth-divider{
	margin: 14px 0;
	display:flex;
	align-items:center;
	gap: 12px;
	color: rgb(242 242 242 / 0.45);
	font-size: 12px;
}
.auth-divider::before, .auth-divider::after{
	content:"";
	flex:1;
	height:1px;
	background: rgb(255 255 255 / 0.08);
}

.auth-social{
	display:flex;
	flex-direction: column;
	gap: 10px;
}

.btn-social{
	display:flex;
	align-items:center;
	justify-content:center;
	gap: 10px;
	border-radius: 999px;
	padding: 12px 14px;
	border: 1px solid rgb(255 255 255 / 0.10);
	background: rgb(0 0 0 / 0.18);
	color: rgb(242 242 242 / 0.78);
	font-weight: 900;
	cursor:pointer;
}
.btn-social:hover{
	border-color: rgb(var(--primary-rgb) / 0.30);
	background: rgb(var(--primary-rgb) / 0.08);
}

.social-mark{
	width: 22px;
	height: 22px;
	border-radius: 999px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	font-weight: 1000;
	font-size: 12px;
	border: 1px solid rgb(255 255 255 / 0.12);
	background: rgb(255 255 255 / 0.06);
}

.auth-footer{
	margin-top: 14px;
	font-size: 12px;
	color: rgb(242 242 242 / 0.55);
	line-height: 1.45;
}

.code-wrap{
	display:flex;
	flex-direction: column;
	gap: 14px;
}

.code-inputs{
	display:flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.code-box{
	width: 48px;
	height: 54px;
	border-radius: 14px;
	text-align:center;
	font-size: 18px;
	font-weight: 950;
	border: 1px solid rgb(255 255 255 / 0.12);
	background: rgb(0 0 0 / 0.18);
	color: rgb(242 242 242 / 0.9);
	outline: none;
}
.code-box:focus{
	border-color: rgb(var(--primary-rgb) / 0.40);
	box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.12);
}

.code-meta{
	text-align:center;
	color: rgb(242 242 242 / 0.65);
	font-size: 13px;
}

.btn-full{ width:100%; }


/* Inputs padrão (Auth) */
.input{
	height: 44px;
	border-radius: 12px;
	border: 1px solid rgb(var(--primary-rgb) / 0.14);
	background: rgb(var(--background-rgb) / 0.26);
	color: var(--foreground);
	padding: 0 12px;
	outline: none;
}
.input::placeholder{
	color: rgb(242 242 242 / 0.55);
}
.input:focus{
	border-color: rgb(var(--primary-rgb) / 0.55);
	box-shadow: 0 0 0 4px rgb(var(--primary-rgb) / 0.10);
}


/* Password toggle */
.pw-wrap{
	position: relative;
	width: 100%;
}
.pw-wrap .pw-input{
	padding-right: 46px;
}
.pw-toggle{
	position:absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: #8c7865;
	padding: 0;
	width: 24px;
	height: 24px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	cursor:pointer;
	transition: transform 160ms ease, color 160ms ease;
}
.pw-toggle:hover{
	transform: translateY(-50%) translateY(-1px);
	color: var(--primary);
}


/* ===== Auth control refinement (V78) ===== */
.auth-tab,
.btn-social,
.social-mark,
.auth-page .btn,
.auth-page .icon-btn,
.auth-page .pw-toggle{
	border-radius: 8px !important;
}

.auth-page .input,
.auth-page select,
.auth-page textarea{
	border-radius: 8px !important;
}


/* ===== Warm auth refresh V106 ===== */
.auth-page {
	background:
		radial-gradient(680px 360px at 12% 0%, rgb(var(--primary-rgb) / 0.12), transparent 62%),
		linear-gradient(180deg, rgb(255 248 234 / 0.04), transparent 26%);
}

.auth-side,
.auth-card {
	background: linear-gradient(180deg, rgb(255 248 234 / 0.08), rgb(255 248 234 / 0.03)), rgb(var(--card-rgb) / 0.58);
	border-color: rgb(var(--primary-rgb) / 0.18);
	box-shadow: 0 24px 60px rgb(9 5 2 / 0.22);
}

.auth-tab,
.btn-social,
.code-box {
	background: linear-gradient(180deg, rgb(255 248 234 / 0.08), rgb(255 248 234 / 0.03)), rgb(var(--background-rgb) / 0.46);
	border-color: rgb(var(--primary-rgb) / 0.14);
}

.auth-tab.is-active {
	background: linear-gradient(180deg, rgb(var(--primary-rgb) / 0.26), rgb(var(--primary-rgb) / 0.12));
	color: var(--foreground);
}

.input {
	background: linear-gradient(180deg, rgb(255 248 234 / 0.08), rgb(255 248 234 / 0.03)), rgb(var(--background-rgb) / 0.46);
	border-color: rgb(var(--primary-rgb) / 0.16);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}


/* ===== Editorial auth refresh V107 ===== */
.auth-page {
	background: transparent;
}

.auth-side,
.auth-card {
	background: rgb(243 233 220 / 0.86);
	border-color: rgb(var(--primary-rgb) / 0.14);
	box-shadow: 0 20px 44px rgb(60 36 9 / 0.10);
}

.auth-side h1,
.auth-field label,
.auth-card,
.auth-tab,
.btn-social {
	color: var(--foreground);
}

.auth-side p,
.auth-bullet,
.auth-hint,
.auth-footer,
.auth-divider {
	color: #655241;
}

.auth-tab,
.btn-social,
.social-mark,
.code-box,
.input {
	background: rgb(246 238 229 / 0.72);
	border-color: rgb(var(--primary-rgb) / 0.14);
	box-shadow: none;
}

.auth-tab.is-active {
	background: rgb(var(--primary-rgb) / 0.16);
	color: var(--foreground);
}


/* ===== B&W editorial blend refresh V109 ===== */
.auth-side,
.auth-card {
	background: #ffffff;
	border-color: #e7ddcf;
	box-shadow: 0 14px 34px rgb(20 15 10 / 0.06);
}

.auth-side p,
.auth-bullet,
.auth-hint,
.auth-footer,
.auth-divider {
	color: #6f5c4b;
}

.auth-tab,
.btn-social,
.social-mark,
.code-box,
.input {
	background: #fbf8f3;
	border-color: #e4d8c8;
	color: #171411;
}

.auth-tab.is-active {
	background: rgb(var(--primary-rgb) / 0.14);
	color: #171411;
	border-color: rgb(var(--primary-rgb) / 0.22);
}

/* ===== Header spacing sync V112 ===== */
.auth-page {
	padding-top: calc(var(--header-height) + var(--value-strip-h, 0px) + 48px);
	padding-bottom: 80px;
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.auth-page > .container {
	width: 100%;
}

.auth-wrap {
	align-items: stretch;
	min-height: 480px;
}

.auth-side {
	padding: 36px 32px;
	min-height: 460px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.auth-side-logo {
	margin-bottom: 24px;
}

.auth-side-logo img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.auth-side h1 {
	font-size: 32px;
	line-height: 1.2;
	margin-bottom: 4px;
}

.auth-side p {
	font-size: 15px;
	line-height: 1.55;
}

.auth-side .auth-bullets {
	margin-top: 28px;
	gap: 14px;
}

.auth-bullet {
	font-size: 14px;
	align-items: center;
	gap: 12px;
}

.auth-bullet-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgb(var(--primary-rgb) / 0.10);
	border: 1px solid rgb(var(--primary-rgb) / 0.18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	color: var(--primary);
}

.auth-card {
	padding: 28px 26px;
}


/* ===== Light-theme contrast fix ===== */
.input::placeholder {
	color: #a28f7c;
}

.code-meta {
	color: #756453;
}

/* =====================================================================
   ========== RESPONSIVE — AUTH (login/register/esqueci/verificacao) ====
   ===================================================================== */

@media (max-width: 1023.98px) {
	/* Longhand pro top respeitar o calc(var(--header-height) + strip + buffer)
	   do V112. Shorthand padding: 96px... anulava o calc e deixava o header
	   cobrir o topo da página. Buffer igual ao padding-bottom. */
	.auth-page {
		padding-top: calc(var(--header-height) + var(--value-strip-h, 0px) + 20px);
		padding-right: 0;
		padding-bottom: 20px;
		padding-left: 0;
	}
	.auth-wrap {
		grid-template-columns: 1fr;
		width: min(720px, calc(100vw - 32px));
	}
	/* Inverte a ordem visual no mobile: formulário primeiro, bloco
	   institucional depois. No desktop o layout 2-col lado a lado é
	   mantido (order:0 é o default, então não vazou pro breakpoint maior). */
	.auth-card { order: 1; }
	.auth-side {
		order: 2;
		min-height: auto;
		padding: 20px;
	}
}

@media (max-width: 767.98px) {
	.auth-page {
		padding-top: calc(var(--header-height) + var(--value-strip-h, 0px) + 16px);
		padding-right: 0;
		padding-bottom: 16px;
		padding-left: 0;
	}
	.auth-wrap {
		gap: 16px;
		width: calc(100vw - 28px);
	}
	.auth-side,
	.auth-card {
		padding: 18px 16px;
		border-radius: 16px;
	}
	.auth-side h1 {
		font-size: 22px;
	}
	.auth-side p {
		font-size: 13.5px;
	}
	.auth-side .auth-bullets {
		margin-top: 14px;
	}
	.auth-tabs {
		gap: 6px;
	}
	.auth-tab {
		font-size: 12.5px;
		padding: 10px 8px;
	}
	.auth-form {
		gap: 10px;
	}
	.auth-form .input,
	.auth-form input,
	.auth-form select {
		font-size: 16px; /* Prevents iOS zoom on focus */
		min-height: 44px;
	}
	.auth-form .btn {
		width: 100%;
		min-height: 46px;
	}
	.auth-row {
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
	}
}

@media (max-width: 575.98px) {
	.auth-page {
		padding-top: calc(var(--header-height) + var(--value-strip-h, 0px) + 12px);
		padding-right: 0;
		padding-bottom: 12px;
		padding-left: 0;
	}
	.auth-card {
		padding: 16px 14px;
	}
	.auth-side {
		padding: 16px 14px;
	}
	.auth-side h1 {
		font-size: 20px;
	}
	.auth-tab {
		font-size: 11.5px;
		letter-spacing: 0.02em;
	}
}

/* P2-B — desktop 2-col: both panels shrink to content height, no stretching voids */
@media (min-width: 1024px) {
	.auth-wrap {
		align-items: start;
		min-height: auto;
	}
	.auth-side {
		justify-content: flex-start;
		min-height: auto;
	}
}

