/**
 * Orbiano: Login / Register forms on My Account (guest view).
 * Uses theme.json palette. Loaded after parent global.css to override light defaults.
 */

/* --- Container --- */
.woocommerce-account #customer_login {
	max-width: 100%;
	margin: 0 auto 2rem;
	padding: 0;
	box-sizing: border-box;
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content #customer_login {
	margin: 0 auto 2rem;
}

.woocommerce-account .woocommerce-MyAccount-content #customer_login .u-column1.col-1:only-child {
	max-width: 480px;
	margin: 0 auto;
}

/* --- Two-column layout --- */
.woocommerce-account #customer_login .u-columns.col2-set {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 2rem;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

.woocommerce-account #customer_login .u-column1.col-1,
.woocommerce-account #customer_login .u-column2.col-2 {
	background: color-mix(in srgb, var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff)) 5%, transparent);
	border: 1px solid color-mix(in srgb, var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff)) 12%, transparent);
	border-radius: 8px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: 0;
	max-width: calc(50% - 1rem);
	align-self: stretch;
}

.woocommerce-account #customer_login .u-column1.col-1 form,
.woocommerce-account #customer_login .u-column2.col-2 form {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	box-sizing: border-box;
}

/* --- Headings --- */
.woocommerce-account #customer_login h2 {
	font-family: var(--wp--preset--font-family--outfit, inherit);
	font-size: 1.75rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff)) 12%, transparent);
	color: var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff));
}

/* --- Body copy --- */
.woocommerce-account #customer_login p,
.woocommerce-account #customer_login .woocommerce-privacy-policy-text,
.woocommerce-account #customer_login .woocommerce-privacy-policy-text p {
	color: var(--wp--preset--color--gray-400, var(--wp--preset--color--gray-13, #6b7280)) !important;
	line-height: 1.6;
	font-size: 0.9375rem;
}

.woocommerce-account #customer_login .woocommerce-form-register p:not(.form-row) {
	margin-bottom: 1rem;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text a {
	color: var(--wp--preset--color--primary-light, #6ba0ff);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-account #customer_login .woocommerce-privacy-policy-text a:hover {
	color: var(--wp--preset--color--primary-500, #2437a4);
	text-decoration: underline;
}

/* --- Labels --- */
.woocommerce-account #customer_login .woocommerce-form-row label,
.woocommerce-account #customer_login label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: 14px;
	color: var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff)) !important;
}

.woocommerce-account #customer_login .woocommerce-form-row .required {
	color: var(--wp--preset--color--danger-600, #dc2626);
}

/* --- Inputs --- */
.woocommerce-account #customer_login .woocommerce-Input.input-text,
.woocommerce-account #customer_login input[type="text"],
.woocommerce-account #customer_login input[type="email"],
.woocommerce-account #customer_login input[type="password"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid color-mix(in srgb, var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff)) 12%, transparent);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	background: color-mix(in srgb, var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff)) 5%, transparent);
	color: var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff));
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-account #customer_login .woocommerce-Input.input-text:focus,
.woocommerce-account #customer_login input[type="text"]:focus,
.woocommerce-account #customer_login input[type="email"]:focus,
.woocommerce-account #customer_login input[type="password"]:focus {
	border-color: var(--wp--preset--color--primary-light, #6ba0ff);
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--primary-light, #6ba0ff) 30%, transparent);
}

.woocommerce-account #customer_login .woocommerce-Input.input-text::placeholder,
.woocommerce-account #customer_login input::placeholder {
	color: var(--wp--preset--color--gray-13, #6b7280);
}

.woocommerce-account #customer_login .woocommerce-form-row {
	margin-bottom: 1.25rem;
	width: 100%;
	box-sizing: border-box;
}

/* Password field + visibility toggle */
.woocommerce-account #customer_login .password-input {
	display: block;
	position: relative;
	width: 100%;
}

.woocommerce-account #customer_login .password-input input {
	padding-right: 3rem;
}

.woocommerce-account #customer_login .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	margin: 0;
	color: var(--wp--preset--color--gray-13, #6b7280);
	background: transparent;
	border: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.woocommerce-account #customer_login .show-password-input:hover,
.woocommerce-account #customer_login .show-password-input:focus {
	color: var(--wp--preset--color--primary-light, #6ba0ff);
	outline: none;
	transform: translateY(-50%);
}

/* --- Remember me --- */
.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff));
}

.woocommerce-account #customer_login .woocommerce-form-login__rememberme span {
	color: inherit;
}

.woocommerce-account #customer_login .woocommerce-form__input-checkbox {
	accent-color: var(--wp--preset--color--primary-light, #6ba0ff);
	width: auto;
	min-width: 1rem;
	height: 1rem;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
}

/* --- Submit buttons --- */
.woocommerce-account #customer_login .woocommerce-button.button,
.woocommerce-account #customer_login .woocommerce-form-login__submit,
.woocommerce-account #customer_login .woocommerce-form-register__submit,
.woocommerce-account #customer_login button[type="submit"] {
	width: 100%;
	padding: 0.75rem 1.75rem;
	background: var(--wp--preset--color--primary-500, #2437a4);
	color: var(--wp--preset--color--neutral-000, #fff);
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	text-transform: none;
	letter-spacing: normal;
}

.woocommerce-account #customer_login .woocommerce-button.button:hover,
.woocommerce-account #customer_login .woocommerce-form-login__submit:hover,
.woocommerce-account #customer_login .woocommerce-form-register__submit:hover,
.woocommerce-account #customer_login button[type="submit"]:hover {
	background: var(--wp--preset--color--primary-600, #1b2e8c);
	color: var(--wp--preset--color--neutral-000, #fff);
	transform: translateY(-1px);
}

/* --- Lost password --- */
.woocommerce-account #customer_login .woocommerce-LostPassword.lost_password {
	margin-top: 1rem;
	margin-bottom: 0;
	text-align: center;
}

.woocommerce-account #customer_login .woocommerce-LostPassword.lost_password a {
	color: var(--wp--preset--color--primary-light, #6ba0ff);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-account #customer_login .woocommerce-LostPassword.lost_password a:hover {
	color: var(--wp--preset--color--primary-500, #2437a4);
	text-decoration: underline;
}

/* --- Notices inside login block --- */
.woocommerce-account #customer_login .woocommerce-message,
.woocommerce-account #customer_login .woocommerce-info,
.woocommerce-account #customer_login .woocommerce-error {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: 8px;
	border-left: 4px solid;
}

.woocommerce-account #customer_login .woocommerce-message {
	background: color-mix(in srgb, var(--wp--preset--color--success-600, #059669) 18%, transparent);
	border-color: var(--wp--preset--color--success-600, #059669);
	color: var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff));
}

.woocommerce-account #customer_login .woocommerce-info {
	background: color-mix(in srgb, var(--wp--preset--color--primary-light, #6ba0ff) 18%, transparent);
	border-color: var(--wp--preset--color--primary-light, #6ba0ff);
	color: var(--merch-v3-footer-text, var(--wp--preset--color--neutral-000, #fff));
}

.woocommerce-account #customer_login .woocommerce-error {
	background: color-mix(in srgb, var(--wp--preset--color--danger-600, #dc2626) 18%, transparent);
	border-color: var(--wp--preset--color--danger-600, #dc2626);
	color: var(--wp--preset--color--danger-red, #ef4444);
}

/* --- Responsive --- */
@media (max-width: 768px) {
	.woocommerce-account #customer_login .u-columns.col2-set {
		flex-direction: column;
		gap: 1.5rem;
	}

	.woocommerce-account #customer_login .u-column1.col-1,
	.woocommerce-account #customer_login .u-column2.col-2 {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
		padding: 1.5rem;
	}

	.woocommerce-account #customer_login h2 {
		font-size: 1.5rem;
	}
}
