.hexa-auth,
.hexa-auth * {
	box-sizing: border-box;
}

.hexa-auth {
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	color: #111;
	font-family: inherit;
}

.hexa-auth__card {
	position: relative;
	overflow: hidden;
	padding: 38px;
	background: #fff;
	border: 1px solid #d8dadd;
	border-radius: 6px;
	box-shadow: 0 18px 46px rgba(17, 24, 39, 0.09);
}

.hexa-auth__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, #111 0%, #1f7a4d 58%, #d59621 100%);
}

.hexa-auth__header {
	margin: 0 0 28px;
}

.hexa-auth__eyebrow {
	margin: 0 0 8px;
	color: #1f7a4d;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.hexa-auth__header h2,
.hexa-auth__card--success h2,
.hexa-auth__card--compact h2 {
	margin: 0;
	color: #111;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: 0;
}

.hexa-auth__header p,
.hexa-auth__card--success p {
	margin: 10px 0 0;
	color: #555f6d;
	font-size: 1rem;
	line-height: 1.55;
}

.hexa-auth__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hexa-auth__grid {
	display: grid;
	gap: 18px;
}

.hexa-auth__grid--half {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hexa-auth__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.hexa-auth__field label {
	color: #111;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.3;
}

.hexa-auth__field label span {
	color: #1f7a4d;
}

.hexa-auth__field input[type="text"],
.hexa-auth__field input[type="email"],
.hexa-auth__field input[type="password"],
.hexa-auth__field input[type="number"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #aeb4bd;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.hexa-auth__field input:focus {
	border-color: #111;
	box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.16);
}

.hexa-auth__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	color: #4d5561;
	font-size: 0.94rem;
}

.hexa-auth__meta-row a {
	color: #111;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hexa-auth__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.hexa-auth__check input {
	width: 16px;
	height: 16px;
	accent-color: #111;
}

.hexa-auth__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 13px 22px;
	border: 2px solid #111;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hexa-auth__button:hover,
.hexa-auth__button:focus {
	background: #1f7a4d;
	border-color: #1f7a4d;
	color: #fff;
	transform: translateY(-1px);
}

.hexa-auth__button--ghost {
	background: #fff;
	color: #111;
}

.hexa-auth__button--ghost:hover,
.hexa-auth__button--ghost:focus {
	background: #111;
	border-color: #111;
	color: #fff;
}

.hexa-auth__errors {
	list-style: none;
	margin: 0 0 22px;
	padding: 14px 16px;
	border: 1px solid #f0b9b9;
	border-left: 4px solid #b42318;
	border-radius: 4px;
	background: #fff4f3;
	color: #7a1b14;
	font-size: 0.94rem;
	line-height: 1.45;
}

.hexa-auth__errors li + li {
	margin-top: 6px;
}

.hexa-auth__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hexa-auth__card--success,
.hexa-auth__card--compact {
	text-align: center;
}

.hexa-auth__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin: 0 0 20px;
	border: 2px solid #1f7a4d;
	border-radius: 50%;
	color: #1f7a4d;
	font-size: 1.6rem;
	font-weight: 800;
}

.hexa-auth__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
}

@media (max-width: 560px) {
	.hexa-auth__card {
		padding: 30px 22px;
	}

	.hexa-auth__grid--half,
	.hexa-auth__actions {
		grid-template-columns: 1fr;
	}

	.hexa-auth__meta-row {
		align-items: flex-start;
		flex-direction: column;
	}
}
