/* ==========================================================================
   Design Village Outlet Mall — Auth pages shared theme
   Used by: login.php, signup.php, forgot_password.php, reset_password.php
   Layers on top of css/style.css (brand fonts/colors already defined there).
   ========================================================================== */

.ts-auth-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px;
	background: linear-gradient(160deg, #fff6ea 0%, #ffeef6 45%, #ffdcec 100%);
	font-family: "Montserrat-Regular", "Segoe UI", Arial, sans-serif;
	position: relative;
	overflow-x: hidden;
}

.ts-auth-body::before,
.ts-auth-body::after {
	content: "";
	position: fixed;
	border-radius: 50%;
	filter: blur(6px);
	z-index: 0;
	pointer-events: none;
}

.ts-auth-body::before {
	width: 380px;
	height: 380px;
	background: #FF7CAA;
	opacity: 0.28;
	top: -140px;
	left: -120px;
}

.ts-auth-body::after {
	width: 320px;
	height: 320px;
	background: #003877;
	opacity: 0.10;
	bottom: -140px;
	right: -110px;
}

/* Shell / Card ------------------------------------------------------- */

.ts-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
}

.ts-shell--wide {
	max-width: 600px;
}

.ts-card {
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 24px 60px rgba(0, 56, 119, 0.16);
	padding: 44px 40px 36px;
}

/* css/style.css has a legacy "form { width:50%; padding:... }" rule left over
   from the old two-column layout. Reset it so forms fill the card. */
.ts-card form {
	width: 100%;
	margin: 0;
	padding: 0;
}

@media screen and (max-width: 560px) {
	.ts-card {
		padding: 32px 22px 26px;
		border-radius: 20px;
	}

	.ts-auth-body {
		padding: 24px 12px;
	}
}

.ts-logo {
	display: block;
	margin: 0 auto 26px;
	max-height: 52px;
	width: auto;
}

.ts-title {
	font-family: "ElMessiri-SemiBold", Georgia, serif;
	color: #003877;
	font-size: 26px;
	text-align: center;
	margin-bottom: 6px !important;
}

.ts-subtitle {
	text-align: center;
	color: #9a97a3;
	font-size: 13px;
	margin-bottom: 26px !important;
}

/* Fields --------------------------------------------------------------- */

.ts-field {
	position: relative;
	margin-bottom: 18px;
}

.ts-field .form-control {
	width: 100%;
	background: #f8f5f1;
	border: 1.5px solid transparent;
	border-radius: 16px;
	height: 52px;
	padding: 0 20px 0 46px;
	font-size: 14px;
	color: #2b2b33;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
	margin-bottom: 0;
}

.ts-field .form-control:focus {
	background: #fff;
	border-color: #E52D8F;
	box-shadow: 0 0 0 4px rgba(229, 45, 143, 0.10);
	/* Bootstrap bumps a focused .input-group > .form-control to z-index:3 so its
	   focus ring isn't clipped by flex siblings. Match it here so that isn't
	   higher than our icons (below), which would otherwise get painted over. */
	z-index: 3;
}

.ts-field .form-control::placeholder {
	color: #a7a3ad;
	text-transform: none;
	font-family: inherit;
}

.ts-field-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #d190ab;
	font-size: 15px;
	pointer-events: none;
	z-index: 4;
}

.ts-field .input-group-addon {
	background: transparent !important;
	border: none !important;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	padding: 0 16px !important;
	cursor: pointer;
	z-index: 4;
}

.ts-field .input-group-addon .toggle-password {
	font-size: 17px !important;
	padding: 0 !important;
	color: #b9adb6;
}

.ts-field .input-group {
	position: relative;
	display: block;
}

/* Options row (remember me / forgot password) --------------------------- */

.ts-options-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 22px;
	font-size: 13px;
}

.ts-options-row .custom-control {
	margin: 0;
	min-height: 0;
	padding-left: 1.75rem;
}

.ts-options-row label {
	font-size: 13px !important;
	font-weight: 600;
	color: #55535c !important;
}

/* Not scoped to .ts-options-row: login.php's reverted (pre-redesign) markup
   uses this checkbox outside that wrapper too, and this stylesheet is only
   ever loaded on these auth pages, so a broader selector is still safe. */
.custom-control-input:checked ~ .custom-control-label::before {
	border-color: #E52D8F;
	background-color: #E52D8F;
}

.custom-control-input:focus ~ .custom-control-label::before {
	box-shadow: 0 0 0 .2rem rgba(229, 45, 143, 0.25);
}

.ts-options-row a {
	font-weight: 600;
	color: #E52D8F;
}

/* Buttons ---------------------------------------------------------------- */

.ts-btn {
	display: block;
	width: 100%;
	height: 52px;
	border-radius: 16px;
	border: none;
	background: linear-gradient(135deg, #E52D8F 0%, #ff5da0 100%);
	color: #fff;
	font-family: "Montserrat-SemiBold", Arial, sans-serif;
	font-size: 14px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 14px 26px rgba(229, 45, 143, 0.32);
	transition: transform .18s ease, box-shadow .18s ease;
	animation-name: none !important;
}

.ts-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 32px rgba(229, 45, 143, 0.4);
	animation-name: none !important;
}

.ts-btn:active {
	transform: translateY(0);
}

.ts-btn.is-loading {
	background: #c7c3cc;
	box-shadow: none;
	cursor: not-allowed;
	transform: none !important;
}

.ts-loading-bar {
	display: none;
	height: 4px;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
	background: #f0ebe3;
	margin-top: 14px;
}

.ts-loading-bar.is-active {
	display: block;
}

.ts-loading-bar-fill {
	height: 100%;
	width: 40%;
	border-radius: 4px;
	background: linear-gradient(135deg, #E52D8F, #ff7caa);
	animation: ts-loading-slide 1.1s ease-in-out infinite;
}

@keyframes ts-loading-slide {
	0% { margin-left: -40%; }
	100% { margin-left: 100%; }
}

.ts-footnote {
	text-align: center;
	font-size: 13px !important;
	color: #7c7986 !important;
	font-weight: 600 !important;
	margin-top: 18px !important;
}

.ts-footnote a {
	color: #E52D8F;
	font-weight: 700;
}

.ts-btn {
	text-align: center;
	text-decoration: none;
	line-height: 52px;
}

.ts-btn:hover {
	text-decoration: none;
	color: #fff;
}

/* Status pages (verify.php, reset_password.php expired state) ----------- */

.ts-status-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 28px;
	color: #fff;
}

.ts-status-icon--success {
	background: linear-gradient(135deg, #1f9d55, #4cd07d);
}

.ts-status-icon--warn {
	background: linear-gradient(135deg, #e2483d, #ff8a7a);
}

/* Alert / toast ------------------------------------------------------------ */

body > .alert {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translate(-50%, 0);
	width: calc(100% - 32px);
	max-width: 420px;
	z-index: 999;
	border-radius: 14px;
	padding: 16px 46px 16px 20px !important;
	font-size: 13px !important;
	color: #fff !important;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
	animation: ts-toast-life 6s ease forwards;
}

/* Toast: slides in, holds, then fades itself out. The close (x) button still
   dismisses it immediately at any point via its inline onclick handler. */
@keyframes ts-toast-life {
	0%   { opacity: 0; transform: translate(-50%, -14px); }
	6%   { opacity: 1; transform: translate(-50%, 0); }
	88%  { opacity: 1; transform: translate(-50%, 0); }
	100% { opacity: 0; transform: translate(-50%, -8px); pointer-events: none; }
}

body > .alert .closebtn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff !important;
	font-size: 18px !important;
	font-weight: 400;
	line-height: 1;
	margin-left: 0;
}

body > .alert .closebtn:hover {
	background: rgba(255, 255, 255, 0.32);
	color: #fff !important;
}

/* Signup wizard ------------------------------------------------------------- */

.ts-card--wizard .container {
	padding: 0;
	max-width: 100%;
}

.ts-card--wizard .row {
	margin: 0;
}

.ts-card--wizard .col-sm {
	flex: 0 0 100%;
	max-width: 100%;
	padding: 0;
}

.ts-card--wizard .tab img.cardMid {
	max-width: 190px;
	display: block;
	margin: 0 auto 6px;
}

.ts-card--wizard .ts-back-btn {
	float: left;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f8f5f1;
	color: #55535c;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	cursor: pointer;
	transition: background .18s ease;
}

.ts-card--wizard .ts-back-btn:hover {
	background: #ffe3f0;
	color: #E52D8F;
}

/* Progress bar (the six .step spans, driven by existing JS) */

.ts-progress {
	display: flex !important;
	gap: 6px;
	margin: 0 0 28px !important;
	padding: 0;
}

.ts-progress .step {
	flex: 1;
	height: 6px;
	border-radius: 4px;
	background: #f0ebe3;
	opacity: 1;
	margin: 0;
	border: none;
	display: block;
	transition: background .25s ease;
}

.ts-progress .step.active {
	background: linear-gradient(135deg, #E52D8F, #ff7caa);
}

.ts-progress .step.finish {
	background: #E52D8F;
}

.ts-card--wizard .inp {
	border: none;
	border-bottom: 2px solid #ece6de;
	padding: 10px 4px;
	outline: none;
	font-weight: 600;
	font-size: 14px;
	width: 90%;
	background: transparent;
	color: #2b2b33;
	transition: border-color .2s ease;
}

.ts-card--wizard .inp:focus {
	border-bottom-color: #E52D8F;
}

.ts-card--wizard input.invalid,
.ts-card--wizard select.invalid {
	border-bottom-color: #e2483d;
	background-color: transparent;
}

.ts-card--wizard .button.instagram {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 52px;
	border-radius: 16px;
	border: none;
	background: linear-gradient(135deg, #E52D8F 0%, #ff5da0 100%);
	color: #fff;
	font-family: "Montserrat-SemiBold", Arial, sans-serif;
	font-size: 14px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	box-shadow: 0 14px 26px rgba(229, 45, 143, 0.32);
	transition: transform .18s ease, box-shadow .18s ease;
	text-align: center;
	line-height: 52px;
	padding: 0;
}

.ts-card--wizard .button.instagram:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 32px rgba(229, 45, 143, 0.4);
}

.ts-card--wizard #nextBtn_fake {
	background: #d8d5dd !important;
	box-shadow: none;
}

.ts-card--wizard [id^="gender"] {
	cursor: pointer;
	border-radius: 16px;
	transition: transform .18s ease, filter .18s ease;
	max-width: 150px;
}

.ts-card--wizard [id^="gender"]:hover {
	transform: translateY(-3px);
}

/* T&C / Privacy modals -------------------------------------------------- */

#myAgreeBox.modal,
#myPrivacyBox.modal {
	background-color: rgba(0, 56, 119, 0.55);
}

#myAgreeBox .modal-content,
#myPrivacyBox .modal-content {
	border: none;
	border-radius: 20px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

#myAgreeBox .modal-header,
#myPrivacyBox .modal-header {
	background: linear-gradient(135deg, #E52D8F 0%, #ff5da0 100%);
	padding: 18px 24px;
}

#myAgreeBox .modal-header p,
#myPrivacyBox .modal-header p {
	font-family: "ElMessiri-SemiBold", Georgia, serif;
	line-height: 1.3;
}
