/* ── Login / Register — split layout + card ── */

/* Standalone login screen (no site header/footer) */
.kr-auth-standalone {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: linear-gradient(165deg, #fdf5f0 0%, #faf8f6 42%, #f3ece4 100%);
}

.kr-auth-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	flex-shrink: 0;
}
.e-con.e-flex>.e-con-inner{
	justify-content:center!important;
}
.kr-auth-topbar__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--kr-text-mid, #4a4a4a);
	text-decoration: none;
	transition: color 0.2s ease;
}

.kr-auth-topbar__back:hover {
	color: var(--kr-saffron, #ff7722);
}

.kr-auth-topbar__back svg {
	flex-shrink: 0;
}

.kr-auth-topbar__logo {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.kr-auth-topbar__logo img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.kr-auth-standalone__body {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px 32px;
}

.kr-auth-layout--standalone {
	width: 100%;
	max-width: 460px;
	min-height: auto;
	margin: 0 auto;
	grid-template-columns: 1fr;
	box-shadow:
		0 24px 48px rgba(26, 26, 26, 0.1),
		0 0 0 1px rgba(232, 228, 223, 0.8);
}

.kr-auth-layout--standalone .kr-auth-layout__main {
	padding: 28px 24px 32px;
}
.kr-auth-input-wrap{
	display:block!important;
}
.show-password-input{
	display:none!important;
}
/* Hide any leftover theme chrome on login page */
body.kr-account-login-page .main-header,
body.kr-account-login-page .mobile-header,
body.kr-account-login-page .kr-mobile-bar,
body.kr-account-login-page .page-bradcurm-header,
body.kr-account-login-page .site-footer,
body.kr-account-login-page #colophon,
body.kr-account-login-page #shop-cart-sidebar,
body.kr-account-login-page #woostify-overlay {
	display: none !important;
}

/* Split layout */
.kr-auth-layout {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	min-height: min(640px, calc(100vh - 120px));
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow:
		0 32px 64px rgba(26, 26, 26, 0.1),
		0 0 0 1px rgba(232, 228, 223, 0.8);
}

.kr-auth-layout__brand {
	position: relative;
	padding: 48px 40px;
	background: linear-gradient(155deg, #ff7722 0%, #e8651a 45%, #2c5f2e 100%);
	color: #fff;
	display: flex;
	align-items: center;
}

.kr-auth-layout__brand::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
	pointer-events: none;
}

.kr-auth-layout__brand-inner {
	position: relative;
	z-index: 1;
}

.kr-auth-layout__logo {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	margin-bottom: 24px;
}

.kr-auth-layout__title {
	margin: 0 0 12px;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.kr-auth-layout__text {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	max-width: 320px;
}

.kr-auth-layout__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.kr-auth-layout__features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
}

.kr-auth-layout__features svg {
	flex-shrink: 0;
	opacity: 0.9;
}

.kr-auth-layout__main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 28px;
	background: #fff;
}

/* Card */
.kr-auth-card {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	font-family: var(--kr-font, 'Poppins', sans-serif);
	box-sizing: border-box;
}

.kr-auth-notices {
	margin-bottom: 16px;
}

.kr-auth-notices:empty {
	display: none;
}

.kr-auth-notices .woocommerce-error,
.kr-auth-notices .woocommerce-info,
.kr-auth-notices .woocommerce-message {
	margin: 0 0 10px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
	list-style: none;
}

.kr-auth-notices .woocommerce-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.kr-auth-notices .woocommerce-message {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.kr-auth-notices .woocommerce-info {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.kr-auth-notices ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kr-auth-card__head {
	text-align: center;
	margin-bottom: 22px;
}

.kr-auth-card__icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: linear-gradient(145deg, var(--kr-saffron-light, #fff4eb), #fff);
	color: var(--kr-saffron, #ff7722);
	border: 1px solid rgba(255, 119, 34, 0.15);
}

.kr-auth-card__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--kr-text, #1a1a1a);
	line-height: 1.25;
}

.kr-auth-card__subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--kr-text-muted, #6b6b6b);
}

.kr-auth-card__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--kr-border-light, #f0ece4);
	font-size: 12px;
	color: var(--kr-text-muted, #6b6b6b);
}

/* Tabs */
.kr-auth-tabs {
	display: flex;
	gap: 6px;
	margin: 20px 0 18px;
	padding: 5px;
	background: var(--kr-cream, #fdf6ec);
	border-radius: 12px;
	border: 1px solid var(--kr-border-light, #f0ece4);
}

.kr-auth-tab {
	flex: 1;
	padding: 10px 14px;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: var(--kr-text-muted, #6b6b6b);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.kr-auth-tab:hover {
	color: var(--kr-text, #1a1a1a);
}

.kr-auth-tab.is-active {
	background: #fff;
	color: var(--kr-saffron, #ff7722);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.kr-auth-panel {
	display: none;
}

.kr-auth-panels {
	width: 100%;
}

.kr-auth-panel.is-active {
	display: block;
	animation: kr-auth-fade-in 0.28s ease;
}

@keyframes kr-auth-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Fields */
.kr-auth-form {
	margin: 0;
}

.kr-auth-field {
	margin-bottom: 16px;
}

.kr-auth-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--kr-text, #1a1a1a);
}

.kr-auth-field label .required {
	color: #dc2626;
}

.kr-auth-field-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--kr-text-muted, #6b6b6b);
}

.kr-auth-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.kr-auth-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--kr-text-muted, #9a9a9a);
	pointer-events: none;
	display: flex;
}

.kr-auth-input,
.kr-auth-card .woocommerce-Input.input-text {
	width: 100% !important;
	padding: 12px 14px 12px 44px !important;
	border: 1.5px solid var(--kr-border, #e8e4df) !important;
	border-radius: 10px !important;
	background: #fff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	color: var(--kr-text, #1a1a1a) !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kr-auth-input:-webkit-autofill,
.kr-auth-input:-webkit-autofill:hover,
.kr-auth-input:-webkit-autofill:focus,
.kr-auth-card .woocommerce-Input.input-text:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
	-webkit-text-fill-color: var(--kr-text, #1a1a1a) !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
	transition: background-color 9999s ease-out 0s;
}

.kr-auth-password-wrap .kr-auth-input {
	padding-right: 52px !important;
	text-overflow: ellipsis;
}

.kr-auth-input:focus,
.kr-auth-card .woocommerce-Input.input-text:focus {
	border-color: var(--kr-saffron, #ff7722) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(255, 119, 34, 0.12) !important;
}

.kr-auth-input:invalid:not(:placeholder-shown) {
	border-color: #fca5a5 !important;
}

.kr-auth-password-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--kr-text-muted, #6b6b6b);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, color 0.15s ease;
}

.kr-auth-password-toggle:hover {
	background: var(--kr-cream, #fdf6ec);
	color: var(--kr-saffron, #ff7722);
}

.kr-auth-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 20px;
}

.kr-auth-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--kr-text-muted, #6b6b6b);
	cursor: pointer;
	margin: 0 !important;
}

.kr-auth-checkbox input {
	width: 16px;
	height: 16px;
	accent-color: var(--kr-saffron, #ff7722);
}

.kr-auth-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--kr-saffron, #ff7722);
	text-decoration: none;
}

.kr-auth-link:hover {
	text-decoration: underline;
}

.kr-auth-hint {
	margin: 0 0 16px;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--kr-text-muted, #6b6b6b);
	background: var(--kr-cream, #fdf6ec);
	border-radius: 10px;
	border: 1px solid var(--kr-border-light, #f0ece4);
}

.kr-auth-submit {
	position: relative;
	width: 100%;
	margin: 0 !important;
	padding: 13px 20px !important;
	border: none !important;
	border-radius: 10px !important;
	background: var(--kr-saffron, #ff7722) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 4px 14px rgba(255, 119, 34, 0.35) !important;
}

.kr-auth-submit:hover:not(:disabled) {
	background: var(--kr-saffron-dark, #e8651a) !important;
	box-shadow: 0 6px 18px rgba(255, 119, 34, 0.4) !important;
}

.kr-auth-submit:active:not(:disabled) {
	transform: scale(0.98);
}

.kr-auth-submit:disabled,
.kr-auth-submit.is-loading {
	opacity: 0.85;
	cursor: wait;
}

.kr-auth-submit__spinner {
	position: absolute;
	right: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: kr-auth-spin 0.7s linear infinite;
}

@keyframes kr-auth-spin {
	to {
		transform: rotate(360deg);
	}
}

.kr-auth-switch {
	margin: 16px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--kr-text-muted, #6b6b6b);
}

.kr-auth-switch__btn {
	border: none;
	background: none;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--kr-saffron, #ff7722);
	cursor: pointer;
	text-decoration: underline;
}

/* Privacy / terms on register form */
.kr-auth-card .woocommerce-privacy-policy-text,
.kr-auth-card .woocommerce-form-register .form-row {
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--kr-text-muted, #6b6b6b);
}

.kr-auth-card .woocommerce-privacy-policy-text a {
	color: var(--kr-saffron, #ff7722);
}

/* Override Woostify default dashed login/register boxes */
.kr-auth-card .woocommerce-form.woocommerce-form-login,
.kr-auth-card .woocommerce-form.woocommerce-form-register,
.kedaranchal-theme.kr-account-login-page .kr-auth-card .woocommerce-form-login,
.kedaranchal-theme.kr-account-login-page .kr-auth-card .woocommerce-form-register {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	background: transparent !important;
	clear: none !important;
	border-radius: 0 !important;
}

.kr-auth-card .woocommerce-form-login .woocommerce-form-login__rememberme {
	text-align: left !important;
}

.kr-auth-card .woocommerce-form-login .woocommerce-form-login__submit,
.kr-auth-card .woocommerce-form-register .woocommerce-form-register__submit {
	margin: 0 !important;
	padding: 13px 20px !important;
	display: block !important;
	width: 100% !important;
}

.kr-auth-card .woocommerce-form-register .input-text,
.kr-auth-card .woocommerce-form-login .input-text {
	height: auto !important;
	min-height: 46px;
}

/* Google block inside card */
.kr-auth-card .kr-google-login {
	margin-bottom: 0;
	width: 100%;
}

.kr-auth-card .kr-google-login__divider {
	margin-top: 18px;
	margin-bottom: 0;
}

/* Account page — full viewport center */
body.kedaranchal-theme.kr-account-login-page {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

body.kedaranchal-theme.kr-account-login-page #view {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.kedaranchal-theme.kr-account-login-page .site-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: transparent;
}

.kedaranchal-theme.kr-account-login-page #primary.content-area,
.kedaranchal-theme.kr-account-login-page .site-main.kr-page-shell--account-login,
.kedaranchal-theme.kr-account-login-page .kr-page-container--account-login,
.kedaranchal-theme.kr-account-login-page .woocommerce {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.kedaranchal-theme.kr-account-login-page #primary.content-area {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.kedaranchal-theme.kr-account-login-page .site-main.kr-page-shell--account-login {
	flex: 1;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0 !important;
	min-height: 0;
	box-sizing: border-box;
}

.kedaranchal-theme.kr-account-login-page .kr-page-container--account-login {
	display: flex;
	flex: 1;
	align-items: stretch;
	justify-content: center;
	width: 100%;
	max-width: none;
}

.kedaranchal-theme.kr-account-login-page .kr-page-container--account-login article {
	width: 100%;
	max-width: none;
	margin: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.kedaranchal-theme.kr-account-login-page .kr-content-card {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.kedaranchal-theme.kr-account-login-page #secondary,
.kedaranchal-theme.kr-account-login-page .sidebar,
.kedaranchal-theme.kr-account-login-page .widget-area {
	display: none !important;
}

.kr-auth-page-shell {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	min-height: auto;
}

.kr-auth-center {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

@media (max-width: 860px) {
	.kr-auth-layout:not(.kr-auth-layout--standalone) {
		grid-template-columns: 1fr;
		max-width: 460px;
		min-height: auto;
	}

	.kr-auth-layout:not(.kr-auth-layout--standalone) .kr-auth-layout__brand {
		padding: 32px 28px;
	}

	.kr-auth-layout:not(.kr-auth-layout--standalone) .kr-auth-layout__title {
		font-size: 1.4rem;
	}

	.kr-auth-layout:not(.kr-auth-layout--standalone) .kr-auth-layout__features {
		display: none;
	}

	.kr-auth-layout:not(.kr-auth-layout--standalone) .kr-auth-layout__main {
		padding: 28px 24px 32px;
	}

	.kr-auth-topbar {
		padding: 14px 16px;
	}

	.kr-auth-standalone__body {
		padding: 12px 16px 24px;
	}
}

@media (max-width: 480px) {
	.kr-auth-layout:not(.kr-auth-layout--standalone) {
		border-radius: 16px;
	}

	.kr-auth-layout:not(.kr-auth-layout--standalone) .kr-auth-layout__brand {
		padding: 24px 20px;
	}

	.kr-auth-layout:not(.kr-auth-layout--standalone) .kr-auth-layout__main {
		padding: 22px 18px 26px;
	}

	.kr-auth-layout--standalone {
		border-radius: 16px;
	}

	.kr-auth-layout--standalone .kr-auth-layout__main {
		padding: 22px 18px 26px;
	}

	.kr-auth-topbar__logo img {
		height: 34px;
	}

	.kr-auth-topbar__back {
		font-size: 13px;
	}

	.kr-auth-form__row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kr-auth-panel.is-active {
		animation: none;
	}

	.kr-auth-submit__spinner {
		animation: none;
	}
}
