/* ==========================================================================
   Josh-Luxury Authentication Modal & Standalone My Account Styles
   Matches exact clean luxury modal UI with custom scroller
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AUTH MODAL OVERLAY & CARD WITH SCROLLER
   -------------------------------------------------------------------------- */
.auth-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 3vh, 32px) 16px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow-y: auto;
	box-sizing: border-box;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.auth-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.auth-modal-card {
	position: relative;
	width: 100%;
	max-width: 450px;
	margin: auto;
	background: #ffffff;
	border-radius: 20px;
	padding: clamp(26px, 4vw, 36px) clamp(20px, 4vw, 32px);
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
	transform: scale(0.95) translateY(10px);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
	color: #111111;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #cfcfd8 #f4f4f7;
}

.auth-modal-card::-webkit-scrollbar {
	width: 6px;
}

.auth-modal-card::-webkit-scrollbar-track {
	background: #f4f4f7;
	border-radius: 10px;
	margin: 14px 0;
}

.auth-modal-card::-webkit-scrollbar-thumb {
	background: #cfcfd8;
	border-radius: 10px;
}

.auth-modal-card::-webkit-scrollbar-thumb:hover {
	background: #9999a4;
}

.auth-modal-overlay.is-open .auth-modal-card {
	transform: scale(1) translateY(0);
}

/* Circular Close Button in Top Right */
.auth-card-close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f4f4f7;
	border: none;
	color: #222222;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
}

.auth-card-close-btn:hover {
	background: #e6e6ec;
	color: #000000;
	transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   2. VIEW PANELS & HEADERS
   -------------------------------------------------------------------------- */
.auth-view-panel {
	display: none;
	animation: authCardFade 0.25s ease;
}

.auth-view-panel.is-active {
	display: block;
}

@keyframes authCardFade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-view-header {
	text-align: center;
	margin-bottom: 20px;
	padding-right: 20px;
	padding-left: 20px;
}

.auth-view-title {
	margin: 0 0 6px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: clamp(24px, 3.5vw, 30px);
	font-weight: 600;
	color: #111111;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.auth-view-subtitle {
	margin: 0;
	font-size: 14px;
	color: #666672;
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   3. CLEAN FORM & INPUTS (MODAL)
   -------------------------------------------------------------------------- */
.auth-clean-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

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

.auth-clean-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #111111;
	line-height: 1.3;
}

.auth-clean-input {
	width: 100%;
	background: #ffffff;
	border: 1.5px solid #e2e2ea;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 14.5px;
	color: #111111;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.auth-clean-input::placeholder {
	color: #9999a4;
}

.auth-clean-input:focus {
	border-color: #111111;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.auth-password-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.auth-password-wrapper .auth-clean-input {
	padding-right: 44px;
}

.auth-clean-toggle-password {
	position: absolute;
	right: 12px;
	background: transparent;
	border: none;
	color: #888894;
	padding: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.auth-clean-toggle-password:hover {
	color: #111111;
}

/* --------------------------------------------------------------------------
   4. CHECKBOX & FORGOT PASSWORD ROW (MODAL)
   -------------------------------------------------------------------------- */
.auth-utility-flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 1px;
	margin-bottom: 3px;
}

.auth-clean-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	font-size: 13.5px;
	color: #222222;
	line-height: 1.4;
}

.auth-clean-checkbox {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.auth-clean-checkbox-custom {
	position: relative;
	width: 17px;
	height: 17px;
	min-width: 17px;
	background: #ffffff;
	border: 1.5px solid #cfcfd8;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.auth-clean-checkbox:checked ~ .auth-clean-checkbox-custom {
	background: #111111;
	border-color: #111111;
}

.auth-clean-checkbox:checked ~ .auth-clean-checkbox-custom::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 7px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.auth-forgot-link {
	font-size: 13.5px;
	font-weight: 600;
	color: #111111;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.auth-forgot-link:hover {
	opacity: 0.75;
}

.auth-terms-link {
	color: #d32f2f;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.auth-terms-link:hover {
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   5. PILL BUTTONS (SOLID & OUTLINE)
   -------------------------------------------------------------------------- */
.btn-auth-pill {
	width: 100%;
	height: 48px;
	border-radius: 9999px;
	font-size: 14.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.btn-auth-solid {
	background: #111111;
	color: #ffffff;
	border: none;
}

.btn-auth-solid:hover {
	background: #2a2a2e;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

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

.btn-auth-outline {
	background: #ffffff;
	color: #111111;
	border: 1.5px solid #111111;
}

.btn-auth-outline:hover {
	background: #f6f6f8;
	transform: translateY(-1px);
}

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

.btn-auth-pill.is-loading {
	pointer-events: none;
	opacity: 0.8;
}

.btn-spinner-icon {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: authCardSpin 0.7s infinite linear;
}

@keyframes authCardSpin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   6. ALERTS
   -------------------------------------------------------------------------- */
.auth-alert-box {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.45;
	margin-bottom: 15px;
	animation: authCardFade 0.25s ease;
}

.auth-alert-box.is-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.auth-alert-box.is-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

/* --------------------------------------------------------------------------
   7. STANDALONE MY ACCOUNT / LOGIN & REGISTER PAGE STYLES
   -------------------------------------------------------------------------- */
.luxury-auth-page-container {
	max-width: 1160px;
	margin: 0 auto;
	padding: clamp(36px, 6vw, 70px) clamp(16px, 4vw, 40px);
}

.luxury-auth-page-header {
	text-align: center;
	max-width: 680px;
	margin: 0 auto clamp(32px, 5vw, 54px);
}

.auth-page-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #c9a227;
	margin-bottom: 10px;
}

.auth-page-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(2rem, 4.5vw, 2.8rem);
	font-weight: 400;
	color: #ffffff;
	margin: 0 0 14px 0;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.auth-page-sub {
	font-size: 0.95rem;
	color: #9999a8;
	line-height: 1.6;
	margin: 0;
}

.luxury-auth-split-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 44px);
	margin-bottom: 50px;
	align-items: stretch;
}

.luxury-auth-split-wrap.single-column-center {
	grid-template-columns: 1fr;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 860px) {
	.luxury-auth-split-wrap {
		grid-template-columns: 1fr;
	}
}

.luxury-auth-card {
	background: #0d0d12;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: clamp(26px, 4vw, 42px);
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
	transition: border-color 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.luxury-auth-card:hover {
	border-color: rgba(201, 162, 39, 0.35);
}

.auth-card-header {
	margin-bottom: 26px;
}

.auth-card-icon {
	display: inline-block;
	font-size: 1.6rem;
	margin-bottom: 10px;
}

.auth-card-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.6rem;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 6px 0;
}

.auth-card-desc {
	font-size: 0.88rem;
	color: #888898;
	line-height: 1.45;
	margin: 0;
}

.auth-standalone-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex-grow: 1;
}

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

.auth-label {
	font-size: 0.86rem;
	font-weight: 600;
	color: #e2e2ec;
	letter-spacing: 0.01em;
}

.auth-label .required {
	color: #c9a227;
}

.auth-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.auth-link-muted {
	font-size: 0.82rem;
	color: #c9a227;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.auth-link-muted:hover {
	opacity: 0.8;
}

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

.auth-input,
.luxury-auth-card input.woocommerce-Input {
	width: 100%;
	background: #15151c;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 13px 16px;
	font-size: 0.92rem;
	color: #ffffff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.auth-input:focus,
.luxury-auth-card input.woocommerce-Input:focus {
	border-color: #c9a227;
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.auth-input-wrap .auth-password-input {
	padding-right: 46px;
}

.auth-toggle-password {
	position: absolute;
	right: 12px;
	background: transparent;
	border: none;
	color: #888898;
	padding: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.auth-toggle-password:hover {
	color: #ffffff;
}

.auth-hint {
	font-size: 0.78rem;
	color: #777788;
	line-height: 1.35;
}

.auth-desc-text {
	font-size: 0.86rem;
	color: #9999aa;
	line-height: 1.5;
}

.auth-utility-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 2px 0 6px;
}

.auth-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	font-size: 0.85rem;
	color: #cccccc;
}

.auth-checkbox {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.auth-checkbox-custom {
	position: relative;
	width: 18px;
	height: 18px;
	min-width: 18px;
	background: #15151c;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	transition: all 0.2s ease;
}

.auth-checkbox:checked ~ .auth-checkbox-custom {
	background: #c9a227;
	border-color: #c9a227;
}

.auth-checkbox:checked ~ .auth-checkbox-custom::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid #000000;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.btn-auth-submit,
.luxury-auth-card .woocommerce-button.button {
	width: 100%;
	height: 50px;
	border-radius: 9999px;
	background: linear-gradient(135deg, #c9a227 0%, #dfba45 100%);
	color: #0b0b0e;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.25s ease;
	margin-top: 10px;
	box-shadow: 0 6px 18px rgba(201, 162, 39, 0.25);
}

.btn-auth-submit:hover,
.luxury-auth-card .woocommerce-button.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(201, 162, 39, 0.38);
	background: linear-gradient(135deg, #dfba45 0%, #ecd066 100%);
	color: #000000;
}

.btn-auth-submit:active,
.luxury-auth-card .woocommerce-button.button:active {
	transform: translateY(0);
}

/* VIP Benefits Ribbon */
.luxury-auth-perks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	padding: 24px;
}

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

.perk-icon {
	font-size: 1.4rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(201, 162, 39, 0.1);
	border: 1px solid rgba(201, 162, 39, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.perk-text strong {
	font-size: 0.88rem;
	color: #ffffff;
	letter-spacing: 0.02em;
}

.perk-text span {
	font-size: 0.78rem;
	color: #888898;
}
