/**
 * Login / account page.
 *
 * @package W3ctrl
 */

body.page-template-template-login,
body.page-template-templates-template-login-php {
	background: #fff8f0;
}

.ps-page-login {
	background: #fff8f0;
	padding-top: 0;
	margin-top: 0;
}

.ps-page-login__section {
	padding: 2.25rem 0 3.5rem;
}

.ps-page-login__wrap {
	max-width: 28rem;
	margin: 0 auto;
}

.ps-page-login__wrap--wide {
	max-width: 1100px;
}

.ps-page-login__card {
	padding: 2rem 2rem 2.1rem;
	border: 1px solid rgba(139, 30, 63, 0.14);
	border-radius: 16px;
	background: linear-gradient(180deg, #fff 0%, #fffaf5 100%);
	box-shadow: 0 10px 28px rgba(92, 20, 41, 0.06);
}

.ps-page-login__card--profile {
	padding: 1.75rem 1.75rem 1.9rem;
}

.ps-page-login__header--profile {
	text-align: left;
	margin-bottom: 1.5rem;
}

.ps-page-login__header {
	text-align: center;
	margin-bottom: 1.35rem;
}

.ps-page-login__eyebrow {
	margin: 0 0 0.35rem;
	color: var(--ps-maroon, #8b1e3f);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ps-page-login__title {
	margin: 0;
	color: var(--ps-maroon, #8b1e3f);
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.3;
}

.ps-page-login__intro {
	margin: 0.65rem 0 0;
	color: rgba(34, 34, 34, 0.72);
	font-size: 0.95rem;
	line-height: 1.6;
}

.ps-page-login__alert {
	margin: 0 0 1rem;
	padding: 0.7rem 0.85rem;
	border-radius: 10px;
	font-size: 0.9rem;
	line-height: 1.45;
}

.ps-page-login__alert.is-error {
	background: rgba(139, 30, 63, 0.08);
	border: 1px solid rgba(139, 30, 63, 0.22);
	color: #5c1429;
}

.ps-page-login__alert.is-success {
	background: rgba(46, 125, 50, 0.08);
	border: 1px solid rgba(46, 125, 50, 0.22);
	color: #1b5e20;
}

.ps-page-login__panel[hidden] {
	display: none !important;
}

.ps-page-login__form {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.ps-page-login__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.ps-page-login__field label {
	color: var(--ps-maroon-dark, #742035);
	font-size: 0.88rem;
	font-weight: 600;
}

.ps-page-login__otp-sent {
	margin: 0;
	text-align: center;
	color: rgba(34, 34, 34, 0.75);
	font-size: 0.95rem;
}

.ps-page-login__otp-boxes {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.55rem;
	width: 100%;
}

.ps-page-login__otp-digit {
	width: 100% !important;
	aspect-ratio: 1 / 1;
	min-height: 3rem;
	padding: 0 !important;
	text-align: center;
	font-size: 1.35rem !important;
	font-weight: 700;
	letter-spacing: 0;
	border: 1.5px solid rgba(139, 30, 63, 0.28) !important;
	border-radius: 12px !important;
	background: #fff;
	color: #8b1e3f;
	caret-color: #8b1e3f;
}

.ps-page-login__otp-digit:focus {
	border-color: #8b1e3f !important;
	box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.14);
	outline: none;
}

.ps-page-login__otp-digit:disabled {
	opacity: 0.65;
	background: #f7f4f5;
}

@media (max-width: 575.98px) {
	.ps-page-login__otp-boxes {
		gap: 0.4rem;
	}

	.ps-page-login__otp-digit {
		min-height: 2.75rem;
		font-size: 1.2rem !important;
		border-radius: 10px !important;
	}
}

.ps-page-login__field input,
.ps-page-login__field select,
.ps-page-login__field textarea {
	width: 100%;
	border: 1px solid rgba(139, 30, 63, 0.2);
	border-radius: 10px;
	background: #fff;
	color: #222;
	font-size: 1rem;
	line-height: 1.4;
	padding: 0.7rem 0.85rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-page-login__field input:focus,
.ps-page-login__field select:focus,
.ps-page-login__field textarea:focus {
	outline: none;
	border-color: var(--ps-maroon, #8b1e3f);
	box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.12);
}

.ps-page-login__mobile-wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(139, 30, 63, 0.2);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.ps-page-login__mobile-wrap:focus-within {
	border-color: var(--ps-maroon, #8b1e3f);
	box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.12);
}

.ps-page-login__prefix {
	display: inline-flex;
	align-items: center;
	padding: 0 0.75rem;
	background: rgba(139, 30, 63, 0.08);
	color: var(--ps-maroon-dark, #742035);
	font-weight: 600;
	font-size: 0.95rem;
	border-right: 1px solid rgba(139, 30, 63, 0.14);
}

.ps-page-login__mobile-wrap input {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ps-page-login__mobile-wrap input:focus {
	box-shadow: none;
}

.ps-page-login__hint {
	margin: 0;
	color: rgba(34, 34, 34, 0.55);
	font-size: 0.8rem;
	line-height: 1.4;
}

.ps-page-login__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

/* Match profile "होम पेज" link: white bg, subtle dark hover (not maroon fill) */
.ps-page-login .ps-page-login__btn,
.ps-page-login button.ps-page-login__btn,
.ps-page-login .ps-page-jap__add-tag,
.ps-page-login button.ps-page-jap__add-tag,
.ps-page-login .ps-page-jap__subtab,
.ps-page-login button.ps-page-jap__subtab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.75rem 0.95rem;
	border: 1px solid rgba(139, 30, 63, 0.14) !important;
	border-radius: 10px !important;
	background: #fff !important;
	background-color: #fff !important;
	color: #742035 !important;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ps-page-login .ps-page-login__btn {
	width: 100%;
}

.ps-page-login .ps-page-login__btn:hover,
.ps-page-login .ps-page-login__btn:focus-visible,
.ps-page-login button.ps-page-login__btn:hover,
.ps-page-login button.ps-page-login__btn:focus-visible,
.ps-page-login .ps-page-jap__add-tag:hover,
.ps-page-login .ps-page-jap__add-tag:focus-visible,
.ps-page-login button.ps-page-jap__add-tag:hover,
.ps-page-login button.ps-page-jap__add-tag:focus-visible,
.ps-page-login .ps-page-jap__subtab:hover,
.ps-page-login .ps-page-jap__subtab:focus-visible,
.ps-page-login button.ps-page-jap__subtab:hover,
.ps-page-login button.ps-page-jap__subtab:focus-visible {
	background: #f0f0f0 !important;
	background-color: #f0f0f0 !important;
	border-color: rgba(0, 0, 0, 0.14) !important;
	color: #742035 !important;
	outline: none;
}

.ps-page-login .ps-page-login__btn:disabled,
.ps-page-login button.ps-page-login__btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.ps-page-login .ps-page-jap__subtab.is-active,
.ps-page-login button.ps-page-jap__subtab.is-active,
.ps-page-login .ps-page-jap__subtab.is-active:hover,
.ps-page-login .ps-page-jap__subtab.is-active:focus-visible {
	background: #8b1e3f !important;
	background-color: #8b1e3f !important;
	border-color: #8b1e3f !important;
	color: #faf8f5 !important;
}


.ps-page-login__otp-sent,
.ps-page-login__welcome {
	margin: 0 0 0.25rem;
	color: rgba(34, 34, 34, 0.78);
	font-size: 0.92rem;
	line-height: 1.5;
	text-align: center;
}

.ps-page-login__user-meta {
	text-align: center;
	margin-bottom: 1.1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(139, 30, 63, 0.12);
}

.ps-page-login__user-name {
	margin: 0;
	color: var(--ps-maroon, #8b1e3f);
	font-size: 1.15rem;
	font-weight: 700;
}

.ps-page-login__user-mobile {
	margin: 0.25rem 0 0;
	color: rgba(34, 34, 34, 0.65);
	font-size: 0.92rem;
}

.ps-page-login__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	justify-content: space-between;
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(139, 30, 63, 0.12);
}

.ps-page-login__link {
	color: var(--ps-maroon, #8b1e3f);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.ps-page-login__link:hover {
	color: var(--ps-maroon-dark, #742035);
	text-decoration: underline;
}

.ps-page-login__link--muted {
	color: rgba(34, 34, 34, 0.55);
	font-weight: 500;
}

/* Profile details + vertical tabs */
.ps-page-profile__layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.ps-page-profile__sidebar {
	position: sticky;
	top: 1rem;
}

.ps-page-profile__user-card {
	text-align: left;
	margin-bottom: 1rem;
	padding: 1rem 1.05rem;
	border: 1px solid rgba(139, 30, 63, 0.14);
	border-radius: 12px;
	background: #fff;
}

.ps-page-profile__tabs {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.ps-page-profile__tab {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 0.75rem 0.95rem;
	border: 1px solid rgba(139, 30, 63, 0.14) !important;
	border-radius: 10px !important;
	background: #fff !important;
	background-color: #fff !important;
	color: #742035 !important;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ps-page-profile__tab:hover,
.ps-page-profile__tab:focus-visible {
	background: #f0f0f0 !important;
	background-color: #f0f0f0 !important;
	border-color: rgba(0, 0, 0, 0.14) !important;
	color: #742035 !important;
	outline: none;
}

.ps-page-profile__tab.is-active {
	background: #8b1e3f !important;
	background-color: #8b1e3f !important;
	border-color: #8b1e3f !important;
	color: #faf8f5 !important;
}

.ps-page-profile__tab--logout {
	margin-top: 0.35rem;
	background: #fff !important;
	background-color: #fff !important;
	border-color: rgba(139, 30, 63, 0.14) !important;
	color: #742035 !important;
}

.ps-page-profile__tab--logout:hover,
.ps-page-profile__tab--logout:focus-visible {
	background: #f0f0f0 !important;
	background-color: #f0f0f0 !important;
	border-color: rgba(0, 0, 0, 0.14) !important;
	color: #742035 !important;
}



.ps-page-profile__content {
	min-width: 0;
}

.ps-page-profile__tabpanel[hidden] {
	display: none !important;
}

.ps-page-profile__section-title {
	margin: 0 0 0.95rem;
	color: var(--ps-maroon, #8b1e3f);
	font-size: 1.15rem;
	font-weight: 700;
}

.ps-page-profile__details {
	margin: 0;
	padding: 1.25rem 1.35rem;
	border: 1px solid rgba(139, 30, 63, 0.14);
	border-radius: 12px;
	background: #fff;
}

.ps-page-profile__grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem 1.25rem;
	margin: 0;
}

.ps-page-profile__item {
	margin: 0;
	min-width: 0;
}

.ps-page-profile__item--full {
	grid-column: 1 / -1;
}

.ps-page-profile__item dt {
	margin: 0 0 0.25rem;
	color: rgba(34, 34, 34, 0.55);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ps-page-profile__item dd {
	margin: 0;
	color: #222;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	word-break: break-word;
}

.ps-page-profile__edit-form {
	max-width: 40rem;
	padding: 1.25rem 1.35rem;
	border: 1px solid rgba(139, 30, 63, 0.14);
	border-radius: 12px;
	background: #fff;
}

.ps-page-profile__edit-form .ps-page-login__btn {
	width: auto;
	min-width: 12rem;
	max-width: none;
}

/* Jap target tab */
.ps-page-jap__intro {
	margin: 0 0 1.15rem;
	color: rgba(34, 34, 34, 0.72);
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: 48rem;
}

.ps-page-jap {
	max-width: 48rem;
	padding: 1.15rem 1.25rem 1.35rem;
	border: 1px solid rgba(139, 30, 63, 0.14);
	border-radius: 12px;
	background: #fff;
}

.ps-page-jap__subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 1.1rem;
}

.ps-page-jap__subtab {
	appearance: none;
	white-space: nowrap;
}

.ps-page-jap__subtab--create {
	margin-left: auto;
}

.ps-page-jap__count {
	display: inline-block;
	min-width: 1.15rem;
	margin-left: 0.2rem;
	opacity: 0.85;
}

.ps-page-jap__view-title {
	margin: 0 0 0.85rem;
	font-size: 1.1rem;
	color: #222;
}

.ps-page-jap__back {
	appearance: none;
	border: 0;
	background: transparent;
	color: #8b1e3f;
	font-weight: 600;
	padding: 0;
	margin: 0 0 0.75rem;
	cursor: pointer;
	font-size: 0.9rem;
}

.ps-page-jap__type-meta {
	margin: -0.45rem 0 0.9rem;
	color: rgba(34, 34, 34, 0.6);
	font-size: 0.88rem;
}

.ps-page-jap__controls {
	display: grid;
	grid-template-columns: 1fr 8rem;
	gap: 0.85rem 1rem;
	margin-bottom: 1rem;
}

.ps-page-jap__controls #ps-jap-custom-wrap {
	grid-column: 1 / -1;
}

.ps-page-jap__progress-wrap {
	margin: 0 0 1rem;
}

.ps-page-jap__progress-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.1rem;
	margin-bottom: 0.45rem;
	font-size: 0.9rem;
	color: rgba(34, 34, 34, 0.75);
}

.ps-page-jap__progress-meta strong {
	color: #8b1e3f;
	font-weight: 700;
}

.ps-page-jap__badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: #8b1e3f;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.ps-page-jap__badge.is-soft {
	background: rgba(139, 30, 63, 0.12);
	color: #8b1e3f;
}

.ps-page-jap__bar {
	height: 0.55rem;
	border-radius: 999px;
	background: rgba(139, 30, 63, 0.12);
	overflow: hidden;
}

.ps-page-jap__bar-fill {
	display: block;
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: #8b1e3f;
	transition: width 0.25s ease;
}

.ps-page-jap__list {
	display: grid;
	gap: 0.85rem;
}

.ps-page-jap__card {
	padding: 0.95rem 1rem;
	border: 1px solid rgba(139, 30, 63, 0.14);
	border-radius: 10px;
	background: #fcfafb;
}

.ps-page-jap__card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.ps-page-jap__card-title {
	margin: 0;
	font-size: 1rem;
	color: #222;
	line-height: 1.35;
}

.ps-page-jap__card-meta {
	margin: 0 0 0.55rem;
	font-size: 0.86rem;
	color: rgba(34, 34, 34, 0.62);
}

.ps-page-jap__card-actions {
	margin-top: 0.75rem;
}

.ps-page-jap__card-actions .ps-page-login__btn {
	width: auto;
	max-width: none;
	min-width: 8.5rem;
}

.ps-page-jap__empty {
	margin: 0.5rem 0 0;
	color: rgba(34, 34, 34, 0.65);
	font-size: 0.95rem;
}

.ps-page-jap__tagbox {
	min-height: 9rem;
	padding: 0.7rem;
	border: 1px solid rgba(139, 30, 63, 0.22);
	border-radius: 10px;
	background: #fff;
	cursor: text;
}

.ps-page-jap__tagbox.is-locked {
	background: #f7f4f5;
	cursor: default;
}

.ps-page-jap__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-bottom: 0.55rem;
}

.ps-page-jap__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.28rem 0.45rem 0.28rem 0.7rem;
	border-radius: 999px;
	background: rgba(139, 30, 63, 0.1);
	color: #8b1e3f;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
}

.ps-page-jap__chip-remove,
.ps-page-login button.ps-page-jap__chip-remove {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	min-height: 0 !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #8b1e3f !important;
	background-color: #8b1e3f !important;
	color: #fff !important;
	cursor: pointer;
	font-size: 0.95rem !important;
	font-weight: 700;
	line-height: 1;
	box-shadow: none !important;
	opacity: 1;
}

.ps-page-jap__chip-remove:hover,
.ps-page-jap__chip-remove:focus-visible,
.ps-page-login button.ps-page-jap__chip-remove:hover,
.ps-page-login button.ps-page-jap__chip-remove:focus-visible {
	background: #5c1429 !important;
	background-color: #5c1429 !important;
	color: #fff !important;
	outline: none;
}

.ps-page-jap__tag-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.ps-page-jap__tag-input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
	padding: 0.35rem 0.1rem !important;
	font-size: 1rem;
	margin: 0 !important;
}

.ps-page-jap__add-tag {
	/* base look handled by shared .ps-page-login button rules above */
	appearance: none;
	white-space: nowrap;
	flex-shrink: 0;
	min-height: 2.4rem;
	padding: 0.55rem 0.85rem;
}

.ps-page-jap__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.35rem;
}

.ps-page-jap__actions .ps-page-login__btn {
	width: auto;
	min-width: 12rem;
	max-width: none;
}

@media (max-width: 991.98px) {
	.ps-page-profile__layout {
		grid-template-columns: 1fr;
		gap: 1.15rem;
	}

	.ps-page-profile__sidebar {
		position: static;
	}

	.ps-page-profile__tabs {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.ps-page-profile__tab--logout {
		margin-top: 0;
		grid-column: 1 / -1;
	}

	.ps-page-profile__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767.98px) {
	.ps-page-jap__controls {
		grid-template-columns: 1fr;
	}

	.ps-page-jap__subtab--create {
		margin-left: 0;
	}
}

@media (max-width: 575.98px) {
	.ps-page-login__row {
		grid-template-columns: 1fr;
	}

	.ps-page-login__card {
		padding: 1.35rem 1.1rem 1.5rem;
	}

	.ps-page-profile__tabs {
		grid-template-columns: 1fr;
	}

	.ps-page-profile__grid {
		grid-template-columns: 1fr;
	}

	.ps-page-profile__edit-form .ps-page-login__btn,
	.ps-page-jap__actions .ps-page-login__btn {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.ps-page-jap__controls {
		grid-template-columns: 1fr;
	}
}
