/* =====================================================================
   Detail King — auth.css
   Login, Sign Up and wp-login.php password reset styles.
   Figma frames: Login #128:424, Signup #130:1013
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Page Shell & Section Layout
   --------------------------------------------------------------------- */

.auth-page {
	background-color: var(--bg-dark);
	min-height: 100vh;
	position: relative;
	overflow: hidden;
}

.auth-section {
	position: relative;
	width: 100%;
	min-height: 100vh;
	padding-block: calc(190 * var(--sp)) calc(108 * var(--sp));
	background:
		radial-gradient(circle at 78% 16%, rgba(40, 34, 15, 0.95) 0%, rgba(40, 34, 15, 0) 58%),
		radial-gradient(circle at 8% 92%, rgba(25, 21, 7, 0.95) 0%, rgba(25, 21, 7, 0) 55%),
		#0B0B0C;
	display: flex;
	align-items: center;
}

.auth-container {
	position: relative;
	z-index: 2;
	width: 100%;
}

.auth-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: calc(90 * var(--sp));
	align-items: center;
}

/* ---------------------------------------------------------------------
   2. Left Column: Brand Authority, Perks & Stats
   --------------------------------------------------------------------- */

.auth-brand {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.auth-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 26px;
	border-radius: 60px;
	background: rgba(233, 201, 124, 0.06);
	border: 1px solid rgba(233, 201, 124, 0.3);
	width: fit-content;
}

.auth-eyebrow__dot {
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background: var(--gold-primary);
	display: inline-block;
}

.auth-eyebrow__text {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-primary);
}

.auth-brand__heading {
	font-family: var(--font-display);
	font-size: calc(82 * var(--fs));
	font-weight: 400;
	line-height: 0.97;
	letter-spacing: 0.03em;
	color: var(--text-white);
	margin: 0;
}

.auth-brand__desc {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--text-white-70);
	max-width: 520px;
	margin: 0;
}

.auth-brand__desc .text-gold {
	color: var(--gold-primary);
	font-weight: 500;
}

/* Perks list */
.auth-perks {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-top: 20px;
	max-width: 520px;
}

.auth-perk-item {
	display: flex;
	align-items: center;
	gap: 18px;
}

.auth-perk-item__badge {
	width: 58px;
	height: 58px;
	min-width: 58px;
	border-radius: 50%;
	background: rgba(233, 201, 124, 0.05);
	border: 1px solid rgba(233, 201, 124, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold-primary);
}

.auth-perk-item__content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.auth-perk-item__title {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.06em;
	color: var(--text-white);
	margin: 0;
}

.auth-perk-item__subtitle {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--text-white-55);
	margin: 0;
}

/* Stats */
.auth-stats {
	display: flex;
	align-items: stretch;
	gap: calc(56 * var(--sp));
	padding-top: 30px;
	margin-top: 6px;
}

.auth-stat-item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-left: 2px solid rgba(233, 201, 124, 0.45);
	padding-left: 24px;
}

.auth-stat-item__value {
	font-family: var(--font-display);
	font-size: calc(46 * var(--fs));
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
}

.auth-stat-item__label {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--text-white-50);
	white-space: nowrap;
}

/* ---------------------------------------------------------------------
   3. Right Column: Auth Card
   --------------------------------------------------------------------- */

.auth-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(233, 201, 124, 0.25);
	border-radius: 30px;
	box-shadow: 0 60px 140px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: calc(56 * var(--sp));
	position: relative;
}

.auth-card__divider-top {
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1.5px;
	background: linear-gradient(90deg, rgba(233, 201, 124, 0) 0%, rgba(233, 201, 124, 1) 50%, rgba(233, 201, 124, 0) 100%);
}

.auth-card__header {
	margin-bottom: 24px;
}

.auth-card__title {
	font-family: var(--font-display);
	font-size: calc(46 * var(--fs));
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.03em;
	color: var(--text-white);
	margin: 0 0 8px;
}

.auth-card__subtitle {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--text-white-60);
	margin: 0;
}

/* Segmented Tab Switcher */
.auth-switcher {
	display: flex;
	gap: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 60px;
	padding: 6px;
	margin-bottom: 28px;
}

.auth-switcher__tab {
	flex: 1;
	text-align: center;
	padding: 14px 20px;
	border-radius: 60px;
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: var(--text-white-65);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease, background 0.2s ease;
}

.auth-switcher__tab:hover {
	color: #ffffff;
}

.auth-switcher__tab--active {
	background: var(--gold-gradient-btn);
	color: #0B0B0C;
	font-weight: 600;
	box-shadow: 0 10px 28px rgba(201, 161, 74, 0.3);
	pointer-events: none;
}

/* Form Styles */
.auth-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.auth-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.auth-label {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.65;
	color: var(--text-white-75);
	margin: 0;
}

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

.auth-input-icon {
	position: absolute;
	left: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(233, 201, 124, 0.7);
	pointer-events: none;
	z-index: 1;
}

.auth-input {
	width: 100%;
	height: 60px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	padding: 16px 20px 16px calc(52 * var(--sp));
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	color: #FFFFFF;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	outline: none;
}

.auth-input--has-toggle {
	padding-right: 54px;
}

.auth-input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.auth-input:focus {
	border-color: var(--gold-primary);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(233, 201, 124, 0.15);
}

.auth-toggle-pass {
	position: absolute;
	right: 14px;
	background: transparent;
	border: none;
	padding: 8px;
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	transition: color 0.2s ease;
	z-index: 1;
}

.auth-toggle-pass:hover {
	color: var(--gold-primary);
}

/* Options row (Remember me / Forgot password) */
.auth-options-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 2px 0 6px;
}

.auth-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 300;
	color: var(--text-white-70);
	user-select: none;
}

.auth-checkbox {
	width: 20px;
	height: 20px;
	accent-color: var(--gold-primary);
	border-radius: 6px;
	cursor: pointer;
}

.auth-link-gold {
	color: var(--gold-primary);
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s ease;
}

.auth-link-gold:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
	width: 100%;
	height: 64px;
	padding: 18px calc(42 * var(--sp));
	border-radius: 60px;
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-top: 6px;
	cursor: pointer;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit-btn:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 36px rgba(201, 161, 74, 0.45);
}

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

/* Footer elements */
.auth-card-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-top: 24px;
	padding-top: 4px;
}

.auth-card-footer__text {
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.65;
	color: var(--text-white-60);
	margin: 0;
	text-align: center;
}

.auth-link-highlight {
	color: var(--gold-primary);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.auth-link-highlight:hover {
	color: #ffffff;
	text-decoration: underline;
}

.auth-trust-seal {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.4);
}

/* Alerts */
.auth-alert {
	padding: 14px 18px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 20px;
}

.auth-alert--error {
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fca5a5;
}

.auth-alert--success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #86efac;
}

.auth-hp {
	display: none !important;
	position: absolute;
	left: -9999px;
}

/* ---------------------------------------------------------------------
   4. Responsive Breakpoints (Derived from 1920px Figma comp)
   --------------------------------------------------------------------- */

@media (max-width: 1280px) {
	.auth-grid {
		gap: calc(48 * var(--sp));
	}

	.auth-brand__heading {
		font-size: calc(68 * var(--fs));
	}

	.auth-card {
		padding: calc(44 * var(--sp)) 36px;
	}
}

@media (max-width: 991.98px) {
	.auth-section {
		padding-block: calc(130 * var(--sp)) calc(60 * var(--sp));
		min-height: auto;
	}

	.auth-grid {
		grid-template-columns: 1fr;
		gap: calc(48 * var(--sp));
	}

	.auth-brand {
		gap: 20px;
	}

	.auth-brand__heading {
		font-size: calc(56 * var(--fs));
	}

	.auth-brand__desc {
		font-size: 18px;
		max-width: 100%;
	}

	.auth-perks {
		max-width: 100%;
	}

	.auth-stats {
		padding-top: 20px;
		gap: 36px;
	}
}

@media (max-width: 767.98px) {
	.auth-card {
		padding: 32px 24px;
		border-radius: 24px;
	}

	.auth-card__title {
		font-size: 38px;
	}

	.auth-card__subtitle {
		font-size: 16px;
	}

	.auth-switcher__tab {
		font-size: 16px;
		padding: 12px 16px;
	}

	.auth-input {
		height: 54px;
		font-size: 16px;
	}

	.auth-submit-btn {
		height: 56px;
		font-size: 16px;
	}

	.auth-stats {
		flex-direction: column;
		gap: 20px;
	}

	.auth-stat-item {
		padding-left: 18px;
	}
}

@media (max-width: 575.98px) {
	.auth-section {
		padding-block: calc(110 * var(--sp)) calc(48 * var(--sp));
	}

	.auth-brand__heading {
		font-size: calc(44 * var(--fs));
	}

	.auth-card {
		padding: 28px 18px;
	}

	.auth-options-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* ---------------------------------------------------------------------
   5. Native wp-login.php Restyle (Password Reset flow)
   --------------------------------------------------------------------- */

body.login {
	background:
		radial-gradient(circle at 78% 16%, rgba(40, 34, 15, 0.95) 0%, rgba(40, 34, 15, 0) 58%),
		radial-gradient(circle at 8% 92%, rgba(25, 21, 7, 0.95) 0%, rgba(25, 21, 7, 0) 55%),
		#0B0B0C !important;
	color: #FFFFFF !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 16px !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	padding: 20px 0;
}

#login {
	width: 100% !important;
	max-width: 460px !important;
	padding: 20px !important;
	margin: auto !important;
}

#login h1 a {
	background-image: url(/wp-content/themes/detailking/assets/images/brand/logo.png) !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	width: 180px !important;
	height: 60px !important;
	margin-bottom: 24px !important;
}

.login form {
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(233, 201, 124, 0.25) !important;
	border-radius: 24px !important;
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5) !important;
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	padding: 36px 32px !important;
	margin-top: 0 !important;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 12px !important;
	color: #FFFFFF !important;
	font-size: 16px !important;
	padding: 12px 16px !important;
	width: 100% !important;
	box-shadow: none !important;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	border-color: #E9C97C !important;
	box-shadow: 0 0 0 3px rgba(233, 201, 124, 0.2) !important;
}

.login label {
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 15px !important;
	margin-bottom: 8px !important;
	font-family: 'Poppins', sans-serif !important;
}

.login .button.button-primary {
	background: linear-gradient(115deg, #A87D2E 0%, #E9C97C 39%, #F6E4AB 50%, #E9C97C 61%, #A87D2E 100%) !important;
	border: none !important;
	border-radius: 60px !important;
	color: #0B0B0C !important;
	font-family: 'Poppins', sans-serif !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	padding: 10px 28px !important;
	text-shadow: none !important;
	box-shadow: 0 8px 22px rgba(201, 161, 74, 0.35) !important;
	width: 100% !important;
	height: 48px !important;
	margin-top: 16px !important;
	float: none !important;
	display: block !important;
	cursor: pointer !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.login .button.button-primary:hover {
	transform: translateY(-5px) !important;
	box-shadow: 0 12px 28px rgba(201, 161, 74, 0.45) !important;
}

#nav,
#backtoblog {
	text-align: center !important;
	padding: 8px 0 !important;
}

#nav a,
#backtoblog a {
	color: #E9C97C !important;
	font-size: 14px !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

#nav a:hover,
#backtoblog a:hover {
	color: #FFFFFF !important;
	text-decoration: underline !important;
}

.login .message,
.login .notice,
.login .success {
	background: rgba(34, 197, 94, 0.12) !important;
	border: 1px solid rgba(34, 197, 94, 0.35) !important;
	border-left: 4px solid #22c55e !important;
	color: #86efac !important;
	border-radius: 12px !important;
	padding: 14px 18px !important;
	margin-bottom: 20px !important;
}

.login #login_error {
	background: rgba(239, 68, 68, 0.12) !important;
	border: 1px solid rgba(239, 68, 68, 0.35) !important;
	border-left: 4px solid #ef4444 !important;
	color: #fca5a5 !important;
	border-radius: 12px !important;
	padding: 14px 18px !important;
	margin-bottom: 20px !important;
}
