/**
 * Twentytrue Luxury Authentication Suite Stylesheet.
 * Full-width edge-to-edge desktop split layout & transparent minimalist mobile design.
 *
 * @package Twentytrue
 * @author  Mahendra_K
 */

/* ==========================================================================
   1. Auth Page Wrapper & Container Architecture (Full Width Edge-to-Edge)
   ========================================================================== */
.tt-auth-page {
	min-height: calc(100vh - var(--tt-header-height, 76px));
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	padding: 0;
	margin: 0;
	width: 100%;
	background: var(--tt-color-bg, #FAF6F7);
	box-sizing: border-box;
}

.tt-auth-container {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	flex: 1;
	box-sizing: border-box;
}

/* ==========================================================================
   2. Desktop Split Layout (Flush with Header, Footer & Left Edge)
   ========================================================================== */
.tt-auth-split {
	display: grid;
	grid-template-columns: 50% 50%;
	width: 100%;
	min-height: calc(100vh - var(--tt-header-height, 76px));
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	box-sizing: border-box;
}

/* Left Editorial Visual Panel (Desktop Only, Attached to Top/Bottom/Left) */
.tt-auth-media {
	position: relative;
	overflow: hidden;
	background: #1D1115;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	min-height: calc(100vh - var(--tt-header-height, 76px));
	margin: 0;
	padding: 0;
	border-radius: 0;
}

.tt-auth-media__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tt-auth-split:hover .tt-auth-media__img {
	transform: scale(1.03);
}

.tt-auth-media__overlay {
	position: relative;
	z-index: 2;
	padding: 48px 40px;
	background: linear-gradient(
		to top, 
		rgba(29, 17, 21, 0.94) 0%, 
		rgba(29, 17, 21, 0.65) 45%, 
		rgba(29, 17, 21, 0.15) 80%, 
		transparent 100%
	);
	color: #FAF6F7;
	box-sizing: border-box;
}

.tt-auth-media__kicker {
	display: block;
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #C25E7E;
	margin-bottom: 8px;
}

.tt-auth-media__heading {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: #FAF6F7;
	margin: 0 0 8px;
	letter-spacing: -0.015em;
}

.tt-auth-media__desc {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 12.5px;
	line-height: 1.55;
	color: rgba(250, 246, 247, 0.82);
	margin: 0;
	font-weight: 400;
	max-width: 440px;
}

/* Right Form Panel */
.tt-auth-form-panel {
	padding: 48px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 100%;
	box-sizing: border-box;
	background: transparent;
}

.tt-auth-form-wrap {
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Fallback Card Architecture (for WooCommerce standalone form) */
.tt-auth-card {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	box-sizing: border-box;
	width: 100%;
	max-width: 380px;
	margin: 40px auto;
	position: relative;
}

.tt-auth-card--woocommerce {
	max-width: 380px;
	margin: 40px auto;
}

/* ==========================================================================
   3. Mobile Responsive Adjustments (Clean, Transparent, Mobile First)
   ========================================================================== */
@media (max-width: 991px) {
	.tt-auth-page {
		padding: 40px 20px 60px;
		min-height: auto;
		align-items: flex-start;
		justify-content: center;
	}

	.tt-auth-container {
		max-width: 380px;
		margin: 0 auto;
	}

	.tt-auth-split {
		display: block;
		width: 100%;
		min-height: auto;
		background: transparent;
		border: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
	}

	.tt-auth-media {
		display: none !important;
	}

	.tt-auth-form-panel {
		padding: 0;
		min-height: auto;
		background: transparent;
	}

	.tt-auth-form-wrap {
		max-width: 100%;
	}

	.tt-auth-card {
		background: transparent;
		border: none;
		box-shadow: none;
		padding: 0;
		border-radius: 0;
		margin: 0 auto;
	}
}

/* ==========================================================================
   4. Header & Typography (Clean without Badge)
   ========================================================================== */
.tt-auth-header {
	text-align: left;
	margin-bottom: 24px;
}

.tt-auth-title {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 24px;
	font-weight: 600;
	color: #1D1115;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	line-height: 1.25;
}

@media (max-width: 480px) {
	.tt-auth-title {
		font-size: 22px;
	}
}

.tt-auth-subtitle {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 13px;
	color: rgba(29, 17, 21, 0.68);
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 480px) {
	.tt-auth-subtitle {
		font-size: 12.5px;
	}
}

/* ==========================================================================
   5. Form Groups, Labels & Precision Asterisk Alignment
   ========================================================================== */
.tt-auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 18px;
}

.tt-form-group {
	display: flex;
	flex-direction: column;
	text-align: left;
}

/* Fix: display: inline-flex prevents * from jumping to right */
.tt-form-label {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #1D1115;
	margin-bottom: 6px;
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 3px;
}

.tt-label-text {
	display: inline;
}

.tt-form-req {
	color: #C25E7E;
	font-size: 12px;
	font-weight: 700;
	display: inline;
	vertical-align: baseline;
}

.tt-form-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.tt-form-label-row .tt-form-label {
	margin-bottom: 0;
}

.tt-form-link {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 11.5px;
	font-weight: 500;
	color: #C25E7E;
	text-decoration: none;
	transition: color 0.15s ease;
}

.tt-form-link:hover {
	color: #1D1115;
	text-decoration: underline;
}

/* ==========================================================================
   6. Transparent Clean Inputs & Password Eye Toggle
   ========================================================================== */
.tt-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.tt-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(29, 17, 21, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 1;
}

.tt-form-input {
	width: 100%;
	height: 48px;
	padding: 0 16px 0 40px;
	background: transparent;
	color: #1D1115;
	border: 1px solid rgba(29, 17, 21, 0.18);
	border-radius: 4px;
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 13.5px;
	font-weight: 500;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tt-form-input::placeholder {
	color: rgba(29, 17, 21, 0.38);
}

.tt-form-input:focus {
	background: transparent;
	border-color: #1D1115;
	box-shadow: 0 0 0 1px #1D1115;
}

.tt-form-input.is-invalid {
	border-color: #FB7185;
	box-shadow: 0 0 0 1px #FB7185;
}

/* Password Eye Button */
.tt-input-wrapper--password .tt-form-input {
	padding-right: 44px;
}

.tt-password-toggle-btn {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(29, 17, 21, 0.45);
	border-radius: 4px;
	transition: color 0.15s ease, background 0.15s ease;
	z-index: 2;
}

.tt-password-toggle-btn:hover {
	color: #C25E7E;
	background: rgba(194, 94, 126, 0.08);
}

/* ==========================================================================
   7. Remember Me Custom Checkbox
   ========================================================================== */
.tt-form-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 2px 0 4px;
}

.tt-custom-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.tt-custom-checkbox input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tt-checkbox-box {
	width: 16px;
	height: 16px;
	border: 1.5px solid #C25E7E;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	flex-shrink: 0;
}

.tt-custom-checkbox input:checked + .tt-checkbox-box {
	background: #C25E7E;
	border-color: #C25E7E;
	color: #FAF6F7;
}

.tt-checkbox-text {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 12px;
	font-weight: 500;
	color: rgba(29, 17, 21, 0.8);
}

/* ==========================================================================
   8. Primary Submit CTA Button & Loading Spinner
   ========================================================================== */
.tt-auth-submit-btn {
	width: 100%;
	height: 48px;
	background: #1D1115;
	color: #FAF6F7;
	border: 1px solid #1D1115;
	border-radius: 9999px;
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(29, 17, 21, 0.14);
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	margin-top: 4px;
}

@media (min-width: 992px) {
	.tt-auth-submit-btn {
		font-size: 12.5px;
	}
}

.tt-auth-submit-btn:hover:not(:disabled) {
	background: #331A22;
	border-color: #C25E7E;
	box-shadow: 0 6px 20px rgba(194, 94, 126, 0.22);
	transform: translateY(-1px);
}

.tt-auth-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.tt-btn-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(250, 246, 247, 0.3);
	border-top-color: #FAF6F7;
	border-radius: 50%;
	animation: tt-auth-spin 0.65s linear infinite;
}

.tt-auth-submit-btn.is-loading .tt-btn-spinner {
	display: inline-block;
}

.tt-auth-submit-btn.is-loading .tt-btn-text {
	opacity: 0.8;
}

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

/* ==========================================================================
   9. Switchers & Notice Boxes
   ========================================================================== */
.tt-auth-switch-box {
	text-align: center;
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 12.5px;
	color: rgba(29, 17, 21, 0.7);
	margin-top: 14px;
}

.tt-auth-switch-btn,
.tt-auth-switch-link {
	background: transparent;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	color: #C25E7E;
	cursor: pointer;
	text-decoration: none;
	margin-left: 4px;
	transition: color 0.15s ease;
}

.tt-auth-switch-btn:hover,
.tt-auth-switch-link:hover {
	color: #1D1115;
	text-decoration: underline;
}

.tt-auth-notice-box {
	padding: 16px;
	border-radius: 4px;
	text-align: center;
	margin-bottom: 20px;
}

.tt-auth-notice-box--error {
	background: #FAF0F2;
	border: 1px solid rgba(251, 113, 133, 0.3);
	color: #9E2B43;
}

.tt-auth-notice-box p {
	font-size: 12.5px;
	line-height: 1.5;
	margin: 0 0 14px;
}

.tt-auth-action-btn {
	display: inline-block;
	padding: 9px 20px;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #1D1115;
	border: 1px solid #1D1115;
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.tt-auth-action-btn:hover {
	background: #1D1115;
	color: #FAF6F7;
}

/* ==========================================================================
   10. Trust Strip & Footer Nav
   ========================================================================== */
.tt-auth-trust-strip {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(226, 211, 216, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 10.5px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(29, 17, 21, 0.55);
}

.tt-auth-footer-nav {
	margin-top: 12px;
	text-align: center;
}

.tt-auth-back-link {
	font-family: var(--tt-font-primary, 'Montserrat', sans-serif);
	font-size: 12px;
	font-weight: 500;
	color: rgba(29, 17, 21, 0.5);
	text-decoration: none;
	transition: color 0.15s ease;
}

.tt-auth-back-link:hover {
	color: #C25E7E;
}


/* TwentyTrue Social Login Refinements */

/* Hide miniOrange's default heading */
.tt-social-login-top .mo-openid-app-icons > p,
.tt-social-login-top .mo-openid-app-icons > span {
    display: none !important;
}

/* Center the social icons */
.tt-social-login-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 28px;
}

/* Refined circular icon styling */
.tt-social-login-top .mo-openid-app-icons a {
    border-radius: 50% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tt-social-login-top .mo-openid-app-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 94, 126, 0.18);
}
