/* ==========================================================================
   Kamala — acceso profesional ("Área profesional"). Una columna estrecha y
   centrada sobre blanco, sin menú: logo, formulario y una línea legal.
   ========================================================================== */

.access {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: min(430px + 2 * 24px, 100%);
	min-height: 100vh;
	min-height: 100svh;
	margin-inline: auto;
	padding: clamp(36px, 4vw, 46px) 24px 28px;
}

/* Logo, título y formulario, juntos y centrados en la pantalla, con la línea
   legal abajo (segunda revisión del cliente). Antes el bloque iba pegado
   arriba y quedaba un hueco grande hasta el pie. Si no cabe (alta), nada
   cambia: los márgenes automáticos se quedan en cero. */
.access__logo {
	display: block;
	width: clamp(86px, 6.9vw, 100px);
	margin: auto auto 0;
	color: var(--ink);
}

.access .access__logo svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Logo, título y formulario más juntos (segunda revisión del cliente: "un
   conjunto más compacto y equilibrado"). Antes, 34 y 48 px. */
.access__title {
	margin: clamp(18px, 2vw, 24px) 0 clamp(26px, 2.8vw, 34px);
	font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
	font-weight: 300;
	letter-spacing: 0.26em;
	text-align: center;
	text-transform: uppercase;
}

.access__body {
	flex: none;
}

/* WooCommerce mete sus formularios de cuenta en una caja con borde. */
.woocommerce .access form.login,
.woocommerce .access form.lost_reset_password {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

/* Campos ------------------------------------------------------------------- */

.access-field,
.access .woocommerce-ResetPassword .form-row {
	float: none;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
}

.access-field label,
.woocommerce .access form .form-row label {
	display: block;
	margin-bottom: 10px;
	font-size: 0.875rem;
	line-height: 1.3;
}

.access-field__input,
.woocommerce .access form .form-row .input-text {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid var(--grey);
	border-radius: 3px;
	background: var(--paper);
	color: var(--ink);
	font-size: 1rem;
	font-weight: 300;
}

/* País del alta: la flecha como la de los desplegables del pago. */
.access-field__input--select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23101820' stroke-width='1.2'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
	background-position: right 18px center;
	background-size: 16px;
	background-repeat: no-repeat;
	appearance: none;
}

.access-field__optional {
	color: var(--muted);
}

.access-field__input::placeholder {
	color: var(--muted);
	opacity: 0.7;
}

.access-field__input:focus,
.woocommerce .access form .form-row .input-text:focus {
	border-color: var(--ink);
	outline: 0;
	box-shadow: 0 0 0 1px var(--ink);
}

.access-password {
	position: relative;
	display: block;
}

.access-password .access-field__input {
	padding-right: 56px;
}

.access-password__toggle {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

.access-password__toggle .icon {
	width: 22px;
	height: 22px;
}

/* Con la contraseña a la vista, el ojo va tachado. */
.access-password__toggle.is-on::after {
	content: "";
	position: absolute;
	width: 24px;
	height: 1px;
	background: currentColor;
	transform: rotate(-40deg);
}

.access-remember {
	margin: -2px 0 22px;
}

.access-check {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: var(--tap);
	font-size: 0.875rem;
	cursor: pointer;
}

.access-check input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 1px solid var(--muted);
	border-radius: 3px;
	background: var(--paper);
	appearance: none;
	cursor: pointer;
}

.access-check input:checked {
	border-color: var(--ink);
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.access .btn,
.woocommerce .access .woocommerce-ResetPassword .button {
	width: 100%;
	min-height: 52px;
	font-weight: 600;
	letter-spacing: 0.22em;
}

/* El botón de "recuperar contraseña" lo pinta WooCommerce: se viste igual.
   Con !important porque la regla general de botones de la tienda (layout.css)
   pesa más que cualquier selector de clases. */
.woocommerce .access .woocommerce-ResetPassword .button {
	float: none;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink) !important;
	color: var(--paper) !important;
	font-size: var(--fs-small);
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
}

.woocommerce .access .woocommerce-ResetPassword .button:hover {
	border-color: var(--ink-hover);
	background: var(--ink-hover) !important;
}

.access .woocommerce-ResetPassword > p:first-of-type {
	margin: 0 0 24px;
	font-size: 0.9375rem;
	text-align: center;
}

.access-remember {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

.access-remember__forgot {
	margin-left: auto;
	font-size: 0.8125rem;
	text-decoration: none;
	text-underline-offset: 0.3em;
}

.access__link {
	margin: 18px 0 0;
	font-size: 0.875rem;
	text-align: center;
}

.access__link a {
	text-decoration: none;
	text-underline-offset: 0.3em;
}

/* Sin subrayar; se subrayan al pasar el cursor (Luca, 17/10). */
.access-remember__forgot:hover,
.access__link a:hover,
.access-check a:hover {
	text-decoration: underline;
}

/* Alta de ópticas ----------------------------------------------------------- */

.access-register {
	margin-top: clamp(22px, 2.4vw, 26px);
	padding-top: clamp(22px, 2.4vw, 28px);
	border-top: 1px solid var(--line);
	text-align: center;
}

.access-register__question {
	margin: 0 0 18px;
	font-size: 0.9375rem;
}

.access-register .access__link {
	margin-top: 20px;
}

/* Avisos ------------------------------------------------------------------- */

.access .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 22px;
}

.access .woocommerce-error,
.access .woocommerce-message,
.access .woocommerce-info {
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 1px solid var(--grey);
	border-left: 3px solid var(--ink);
	background: var(--surface);
	font-size: 0.875rem;
	list-style: none;
}

.access .woocommerce-error {
	border-left-color: #a8232b;
}

.access .woocommerce-error::before,
.access .woocommerce-message::before,
.access .woocommerce-info::before {
	display: none;
}

/* Línea legal -------------------------------------------------------------- */

.access__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	margin: auto 0 0;
	padding-top: clamp(36px, 4.4vw, 52px);
	font-size: 0.6875rem;
	color: var(--muted);
}

.access__legal a {
	color: inherit;
	text-decoration: none;
}

.access__legal a:hover {
	text-decoration: underline;
}

.access__legal > * + *::before {
	content: "·";
	margin-inline: 8px;
}

/* Alta de ópticas ----------------------------------------------------------- */

.access__intro {
	margin: -14px 0 28px;
	font-size: 0.9375rem;
	line-height: 1.6;
	text-align: center;
	color: var(--muted);
}

.access-field__hint {
	display: block;
	margin-top: 6px;
	font-size: 0.8125rem;
	color: var(--muted);
}

.access-check {
	align-items: flex-start;
	line-height: 1.5;
}

.access-check span {
	padding-top: 1px;
}

.access-check a {
	text-decoration: none;
	text-underline-offset: 0.3em;
}

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

.access-done {
	text-align: center;
}

.access-done__title {
	margin: 0 0 10px;
	font-size: 1.125rem;
}

.access-done p {
	margin: 0 0 28px;
	color: var(--muted);
}

.access-done .access-done__title {
	margin-bottom: 10px;
	color: var(--ink);
}
