/**
 * TopLawyer Authentication Pages Styling (Login, Registration, Thank-You)
 *
 * @package TopLawyer
 */

.tl-auth-container {
	min-height: calc(100vh - 180px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%);
}

.tl-auth-card {
	width: 100%;
	max-width: 480px;
	background: var(--tl-color-surface, #FFFFFF);
	border: 1px solid var(--tl-color-border, #E2E8F0);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(11, 19, 43, 0.08);
	padding: 2.5rem;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

.tl-auth-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--tl-color-secondary, #C5A059), var(--tl-color-primary, #0B132B));
}

.tl-auth-header {
	text-align: center;
	margin-bottom: 2rem;
}

.tl-auth-brand-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tl-color-secondary, #C5A059);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.75rem;
}

.tl-auth-title {
	font-family: var(--tl-font-heading, serif);
	font-size: 1.875rem;
	color: var(--tl-color-primary, #0B132B);
	margin: 0 0 0.5rem;
	font-weight: 700;
}

.tl-auth-subtitle {
	font-size: 0.9375rem;
	color: var(--tl-color-muted, #64748B);
	margin: 0;
	line-height: 1.5;
}

/* Alert States */
.tl-auth-alert {
	padding: 0.875rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.4;
	margin-bottom: 1.5rem;
	display: none;
}

.tl-auth-alert.is-visible {
	display: block;
}

.tl-auth-alert-error {
	background: var(--tl-color-error-bg, #FEF2F2);
	border: 1px solid #FECACA;
	color: var(--tl-color-error, #DC2626);
}

.tl-auth-alert-success {
	background: var(--tl-color-success-bg, #ECFDF5);
	border: 1px solid #A7F3D0;
	color: var(--tl-color-success, #059669);
}

/* Form Controls */
.tl-form-group {
	margin-bottom: 1.25rem;
}

.tl-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tl-color-text, #0F172A);
	margin-bottom: 0.375rem;
}

.tl-form-input {
	width: 100%;
	height: 48px;
	padding: 0 1rem;
	font-size: 0.9375rem;
	color: var(--tl-color-text, #0F172A);
	background: #FFFFFF;
	border: 1px solid var(--tl-color-border, #E2E8F0);
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.tl-form-input:focus {
	border-color: var(--tl-color-secondary, #C5A059);
	box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.tl-password-wrapper {
	position: relative;
}

.tl-password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--tl-color-muted, #64748B);
	cursor: pointer;
	padding: 4px 6px;
	font-size: 0.8125rem;
	font-weight: 600;
}

.tl-password-toggle:hover {
	color: var(--tl-color-primary, #0B132B);
}

/* Checkbox & Options */
.tl-form-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	font-size: 0.875rem;
}

.tl-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	color: var(--tl-color-text-secondary, #334155);
}

.tl-auth-link {
	color: var(--tl-color-secondary, #C5A059);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.15s ease;
}

.tl-auth-link:hover {
	color: var(--tl-color-secondary-hover, #B38F46);
	text-decoration: underline;
}

/* Submit Button */
.tl-btn-auth {
	width: 100%;
	height: 50px;
	background: var(--tl-color-primary, #0B132B);
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.tl-btn-auth:hover {
	background: var(--tl-color-primary-light, #1C2541);
}

.tl-btn-auth:active {
	transform: scale(0.99);
}

.tl-btn-auth:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Footer / Switcher */
.tl-auth-footer {
	text-align: center;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--tl-color-border, #E2E8F0);
	font-size: 0.875rem;
	color: var(--tl-color-muted, #64748B);
}

/* Forgot Password Section */
.tl-forgot-section {
	display: none;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--tl-color-border, #E2E8F0);
}

.tl-forgot-section.is-open {
	display: block;
}

/* Thank You Specific */
.tl-thankyou-icon {
	width: 72px;
	height: 72px;
	background: var(--tl-color-success-bg, #ECFDF5);
	border: 2px solid var(--tl-color-success, #059669);
	color: var(--tl-color-success, #059669);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	margin: 0 auto 1.5rem;
}

.tl-next-steps-list {
	text-align: left;
	background: var(--tl-color-background, #F8FAFC);
	border: 1px solid var(--tl-color-border, #E2E8F0);
	border-radius: 10px;
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0;
	list-style: none;
}

.tl-next-steps-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.875rem;
	font-size: 0.9375rem;
	color: var(--tl-color-text-secondary, #334155);
}

.tl-next-steps-list li:last-child {
	margin-bottom: 0;
}

.tl-step-badge {
	background: var(--tl-color-secondary, #C5A059);
	color: #FFFFFF;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.tl-auth-card {
		padding: 1.75rem 1.25rem;
		border-radius: 12px;
	}
	.tl-auth-title {
		font-size: 1.5rem;
	}
}
