/* Account access: scoped to WooCommerce account pages and the register template. */
.a-auth-page {
	padding: clamp(28px, 5vw, 64px) 0;
	background: radial-gradient(ellipse at 15% 0, rgba(45, 24, 76, .045), transparent 65%), var(--a-bg);
}
.woocommerce .a-auth {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	max-width: 1040px;
	margin: 0 auto;
	border: 1px solid var(--a-border);
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 16px 50px rgba(20, 12, 36, .07);
}
.a-auth__story {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 44px;
	padding: 42px 36px;
	color: #fff;
	background: radial-gradient(ellipse at 100% 100%, rgba(0, 168, 204, .15), transparent 65%), linear-gradient(145deg, var(--a-deep), var(--a-dark));
}
.a-auth__brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.a-auth__brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.a-auth__story-copy { margin: auto 0; }
.a-auth__eyebrow { display: block; margin-bottom: 18px; color: #83dbe9; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.a-auth__story h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; color: #fff; overflow-wrap: anywhere; }
.a-auth__story p { color: #cfc9db; font-size: 14px; line-height: 1.9; }
.a-auth__benefits { display: grid; gap: 16px; list-style: none; margin: 30px 0 0; padding: 0; }
.a-auth__benefits li { display: flex; align-items: center; gap: 12px; color: #edeaf3; font-size: 12px; line-height: 1.7; }
.a-auth__benefits li span { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; font-size: 10px; color: #a2e2ed; }
.woocommerce .a-auth__back { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 36px; color: #dfd8ec; font-size: 12px; }
.woocommerce .a-auth__back:hover { color: #fff; }
.a-auth__panel { min-width: 0; padding: 38px 48px 40px; }
.a-auth__tabs { display: flex; gap: 24px; margin-bottom: 30px; border-bottom: 1px solid var(--a-border); }
.woocommerce .a-auth__tabs a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 2px 14px; color: var(--a-muted); font-size: 14px; font-weight: 600; }
.woocommerce .a-auth__tabs a[aria-current="page"] { color: var(--a-deep); }
.a-auth__tabs a[aria-current="page"]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--a-cyan); }
.a-auth__heading { margin-bottom: 26px; }
.a-auth__heading h1 { font-size: clamp(24px, 2.8vw, 30px); font-family: var(--a-font-sans); letter-spacing: -.025em; line-height: 1.4; margin: 0 0 10px; }
.a-auth__heading p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--a-muted); overflow-wrap: anywhere; }
.woocommerce .a-auth form.a-auth__form {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: start;
}
.woocommerce .a-auth__form .form-row { display: block; margin: 0 0 19px; padding: 0; }
.woocommerce .a-auth__form .form-row-wide { width: 100%; float: none; clear: both; }
.woocommerce .a-auth__form .form-row > label { display: block; margin: 0 0 7px; font-size: 12px; line-height: 1.7; font-weight: 600; color: var(--a-text); }
.woocommerce .a-auth__form .form-row input.input-text {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	height: auto;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--a-border);
	border-radius: 10px;
	background: #fcfcfe;
	font: inherit;
	font-size: 16px;
	line-height: 22px;
	color: var(--a-text);
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.woocommerce .a-auth__form .form-row input.input-text:focus { background: #fff; border-color: var(--a-cyan); outline: 2px solid var(--a-cyan); outline-offset: 2px; }
.woocommerce .a-auth__form .required { color: #b91c1c; }
.woocommerce .a-auth__options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 2px 0 24px; }
.woocommerce .a-auth__options label { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 12px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.woocommerce .a-auth__options input[type="checkbox"] { appearance: auto; flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--a-deep); }
.woocommerce .a-auth__options a { font-size: 12px; color: var(--a-deep); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce .a-auth button.a-auth__submit {
	display: block;
	float: none;
	width: 100%;
	min-height: 48px;
	margin: 8px 0 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--a-deep);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	white-space: normal;
	text-align: center;
	cursor: pointer;
}
.woocommerce .a-auth button.a-auth__submit:hover { background: var(--a-dark); color: #fff; }
.woocommerce .a-auth button.a-auth__submit:disabled { opacity: .5; cursor: not-allowed; }
.a-auth__switch { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--a-border); color: var(--a-muted); text-align: center; font-size: 12px; line-height: 2; }
.woocommerce .a-auth__switch a { color: var(--a-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.a-auth__info { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--a-border); border-radius: 10px; background: var(--a-bg); color: var(--a-muted); font-size: 12px; line-height: 1.8; }
.a-auth .woocommerce-privacy-policy-text { margin: 6px 0 20px; color: var(--a-muted); font-size: 12px; line-height: 1.8; }
.a-auth .woocommerce-privacy-policy-text a { color: var(--a-deep); text-decoration: underline; }
.a-auth .woocommerce-password-strength { clear: both; width: 100%; margin: 10px 0 0; font-size: 12px; }
.a-auth .woocommerce-password-hint { display: block; margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--a-muted); }

/* Keep the native WooCommerce toggle and its accessible label; no icon font dependency. */
.woocommerce form .password-input { position: relative; display: block; width: 100%; }
.woocommerce form .password-input input { width: 100%; padding-right: 50px !important; }
.woocommerce form .password-input .show-password-input {
	position: absolute;
	inset: 0 0 auto auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: calc(100% - 2px);
	max-height: 46px;
	min-width: 0;
	min-height: 0;
	margin: 1px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: var(--a-muted);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
}
.woocommerce form .password-input .show-password-input:hover { background: rgba(45, 24, 76, .05); color: var(--a-deep); }
.woocommerce form .password-input .show-password-input::before { display: none; }
.woocommerce form .password-input .show-password-input::after {
	content: '';
	position: static;
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce form .password-input .show-password-input.display-password::after {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18M10 5.2A12 12 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-3.5 4.4M6.2 6.2A20 20 0 0 0 2 12s3.5 7 10 7a12 12 0 0 0 5.8-1.8M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18M10 5.2A12 12 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-3.5 4.4M6.2 6.2A20 20 0 0 0 2 12s3.5 7 10 7a12 12 0 0 0 5.8-1.8M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
	.a-auth__story { padding: 32px 26px; }
	.a-auth__panel { padding: 30px; }
}
@media (max-width: 700px) {
	.woocommerce .a-auth { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
	.a-auth__story { padding: 24px; gap: 16px; }
	.a-auth__brand { font-size: 18px; }
	.a-auth__brand svg { width: 30px; height: 30px; }
	.a-auth__story-copy { margin: 0; }
	.a-auth__eyebrow, .a-auth__benefits, .a-auth__back { display: none !important; }
	.a-auth__story h2 { margin: 0; font-size: 23px; }
	.a-auth__story p { display: none; }
	.a-auth__panel { padding: 24px; }
	.a-auth__tabs { margin-bottom: 24px; }
	.a-auth__heading { margin-bottom: 22px; }
}
@media (max-width: 380px) {
	.a-auth__panel, .a-auth__story { padding: 22px 18px; }
	.a-auth__options { gap: 8px; }
}
