/**
 * Auth pages (Login, Register, Forgot Password) styles.
 *
 * @package Kadence_Child
 */

/* Full-page centering
-------------------------------------------------------------- */
.kc-auth {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
	padding: 40px 20px;
}

/* Card
-------------------------------------------------------------- */
.kc-auth__card {
	width: 100%;
	max-width: 460px;
	background: #fff;
	border-radius: 24px;
	padding: 48px 40px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
	text-align: left;
}

/* Site name (replaces logo)
-------------------------------------------------------------- */
.kc-auth__site-name {
	font-size: 28px;
	font-weight: 800;
	color: var(--global-palette1, #091a3d);
	margin: 0 0 24px;
}

/* Title
-------------------------------------------------------------- */
.kc-auth__title {
	font-size: 28px;
	font-weight: 700;
	color: var(--global-palette5, #2b2f3a);
	margin: 0 0 8px;
}

/* Subtitle
-------------------------------------------------------------- */
.kc-auth__subtitle {
	font-size: 15px;
	color: var(--global-palette6, #6b7280);
	margin: 0 0 32px;
	line-height: 1.5;
}

/* Form
-------------------------------------------------------------- */
.kc-auth__form {
	text-align: left;
}

/* Field
-------------------------------------------------------------- */
.kc-auth__field {
	margin-bottom: 16px;
}

.kc-auth__input {
	display: block;
	width: 100%;
	padding: 14px 18px !important;
	border: 1px solid #e8dccb !important;
	border-radius: 16px !important;
	font-size: 14px;
	color: var(--global-palette5, #2b2f3a) !important;
	background: #fff !important;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.kc-auth__input::placeholder {
	color: #9ca3af;
}

.kc-auth__input:focus {
	outline: none;
	border-color: #c89a67;
	box-shadow: none !important;
}

/* Submit button
-------------------------------------------------------------- */
.kc-auth__submit {
	display: block;
	width: 100%;
	padding: 14px;
	margin-top: 8px;
	background: var(--global-palette1, #091a3d);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 16px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.kc-auth__submit:hover {
	opacity: 0.9;
}

/* Links
-------------------------------------------------------------- */
.kc-auth__link {
	text-align: center;
	font-size: 14px;
	color: var(--global-palette6, #6b7280);
	margin: 0;
}

.kc-auth__link a {
	color: var(--global-palette1, #091a3d);
	text-decoration: none;
	font-weight: 600;
}

.kc-auth__link a:hover {
	text-decoration: underline;
}

.kc-auth__link--forgot {
	text-align: right;
	margin-top: 12px;
	margin-bottom: 0;
}

.kc-auth__link--switch {
	margin-top: 24px;
}

/* Inline field error
-------------------------------------------------------------- */
.kc-auth__input--error {
	border-color: #dc2626 !important;
}

.kc-auth__input--error:focus {
	border-color: #dc2626 !important;
}

.kc-auth__field-error {
	display: block;
	margin-top: 6px;
	padding-left: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #dc2626;
	line-height: 1.4;
}

.kc-auth__field-error:empty {
	display: none;
}

/* WC notices inside the card — full reset of theme/WC defaults
-------------------------------------------------------------- */
.kc-auth__card .woocommerce-error,
.kc-auth__card .woocommerce-message,
.kc-auth__card .woocommerce-info {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	list-style: none !important;
	margin: 0 0 20px !important;
	padding: 12px 16px !important;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: none !important;
	background-clip: padding-box;
}

/* Kill the WC/theme icon pseudo-element */
.kc-auth__card .woocommerce-error::before,
.kc-auth__card .woocommerce-message::before,
.kc-auth__card .woocommerce-info::before {
	display: none !important;
	content: none !important;
}

/* Kill padding-left that themes add for the icon */
.kc-auth__card .woocommerce-error,
.kc-auth__card .woocommerce-message,
.kc-auth__card .woocommerce-info {
	padding-left: 16px !important;
}

/* Normalize inner li/p so they inherit font */
.kc-auth__card .woocommerce-error li,
.kc-auth__card .woocommerce-error p,
.kc-auth__card .woocommerce-message li,
.kc-auth__card .woocommerce-message p,
.kc-auth__card .woocommerce-info li,
.kc-auth__card .woocommerce-info p {
	list-style: none !important;
	margin: 0;
	padding: 0;
	font-size: inherit;
	color: inherit;
}

/* Remove any <a> that WC sometimes injects (e.g. "Click here to login") */
.kc-auth__card .woocommerce-error a,
.kc-auth__card .woocommerce-message a,
.kc-auth__card .woocommerce-info a {
	color: inherit;
	text-decoration: underline;
}

.kc-auth__card .woocommerce-error {
	background: #fef2f2 !important;
	color: #dc2626 !important;
	border: 1px solid #fecaca !important;
}

.kc-auth__card .woocommerce-message {
	background: #f0fdf4 !important;
	color: #16a34a !important;
	border: 1px solid #bbf7d0 !important;
}

.kc-auth__card .woocommerce-info {
	background: #faf7f2 !important;
	color: var(--global-palette5, #2b2f3a) !important;
	border: 1px solid #e8dccb !important;
}

/* Success message (reset link sent)
-------------------------------------------------------------- */
.kc-auth__subtitle--success {
	color: #22c55e;
	font-weight: 600;
}

/* Toast notification (bottom-right)
-------------------------------------------------------------- */
.kc-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
}

.kc-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.kc-toast--success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.kc-toast--success svg {
	flex-shrink: 0;
}

/* Mobile
-------------------------------------------------------------- */
@media (max-width: 480px) {
	.kc-auth__card {
		padding: 32px 24px;
	}

	.kc-auth__site-name {
		font-size: 24px;
	}

	.kc-auth__title {
		font-size: 24px;
	}
}
