/**
 * TripThis Login — frontend styles.
 *
 * Same visual language as the other TripThis plugins (provider registration,
 * user profile): soft #f7f9fb field fills, 1.5px #e7ebf0 borders, a 16px
 * radius, a teal #2ab5b5 accent / focus ring, muted helper text, pill buttons
 * and a soft card shadow.
 */

.ttl {
	/* Design tokens from the TripThis profile mockup. */
	--ttl-accent: #2ab5b5;
	--ttl-accent-dark: #1a8a8a;
	--ttl-border: #e7ebf0;
	--ttl-line-strong: #d5dce4;
	--ttl-bg: #ffffff;
	--ttl-bg-soft: #f5f6f8;
	--ttl-field: #f7f9fb;
	--ttl-text: #12212e;
	--ttl-ink-soft: #40515f;
	--ttl-muted: #7b8896;
	--ttl-error: #c0392b;
	--ttl-success: #1f9d6b;
	--ttl-ring: rgba(42, 181, 181, 0.32);
	--ttl-radius: 16px;
	--ttl-radius-sm: 11px;
	--ttl-shadow: 0 1px 2px rgba(18, 33, 46, 0.04), 0 12px 30px -18px rgba(18, 33, 46, 0.25);

	box-sizing: border-box;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	color: var(--ttl-text);
	font-size: 15px;
	line-height: 1.5;
	font-family: var(--e-global-typography-primary-font-family, "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	font-weight: 500;
}

.ttl *,
.ttl *::before,
.ttl *::after {
	box-sizing: border-box;
}

.ttl [hidden] {
	display: none !important;
}

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

.ttl-card {
	
    	border: 1px solid var(--ttl-border);
	border-radius: var(--ttl-radius);
	box-shadow: var(--ttl-shadow);
	padding: 28px;
}

.ttl-card--center {
	text-align: center;
}

.ttl-view {
	margin: 0;
}

.ttl-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: var(--ttl-text);
}

.ttl-hint {
	margin: 0 0 20px;
	font-size: 0.9rem;
	color: var(--ttl-muted);
}

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

.ttl-field {
	display: block;
	margin-bottom: 16px;
}

.ttl .ttl-field__label {
	display: block;
	font-weight: 600;
	font-size: 0.88rem;
	margin-bottom: 7px;
	color: var(--ttl-ink-soft);
}

/* Specificity (0,4,1) raised past the Elementor Kit's global field rule,
   `.elementor-kit-N input:not([type=button]):not([type=submit])` (0,3,1),
   which loads after this file and would otherwise restyle the inputs. */
.ttl .ttl-card .ttl-field input.ttl-input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ttl-text);
	background: var(--ttl-field);
	border: 1.5px solid var(--ttl-border);
	border-radius: var(--ttl-radius);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ttl .ttl-card .ttl-field input.ttl-input::placeholder {
	color: var(--ttl-muted);
	opacity: 0.8;
}

.ttl .ttl-card .ttl-field input.ttl-input:hover {
	border-color: var(--ttl-line-strong);
}

.ttl .ttl-card .ttl-field input.ttl-input:focus {
	outline: none;
	border-color: var(--ttl-accent);
	background: #fff;
	box-shadow: 0 0 0 4px var(--ttl-ring);
}

/* Password with the eye toggle sitting inside the input. */
.ttl-pw {
	position: relative;
}

.ttl .ttl-card .ttl-pw input.ttl-input {
	padding-right: 52px;
}

.ttl-eye {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--ttl-accent);
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, background 0.15s ease;
}

.ttl-eye:hover {
	color: var(--ttl-accent-dark);
	background: rgba(42, 181, 181, 0.08);
}

.ttl-eye:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--ttl-ring);
}

.ttl-eye svg {
	display: block;
}

/* ---- Remember me + forgot link ---- */

.ttl-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 4px 0 22px;
}

.ttl-check {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--ttl-ink-soft);
	cursor: pointer;
	user-select: none;
}

.ttl-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.ttl-check__box {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	position: relative;
	background: #fff;
	border: 2px solid var(--ttl-line-strong);
	border-radius: 7px;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ttl-check:hover .ttl-check__box {
	border-color: var(--ttl-accent);
}

.ttl-check input:focus-visible + .ttl-check__box {
	box-shadow: 0 0 0 3px var(--ttl-ring);
}

.ttl-check input:checked + .ttl-check__box {
	background: var(--ttl-accent);
	border-color: var(--ttl-accent);
}

.ttl-check input:checked + .ttl-check__box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ttl .ttl-link {
	color: var(--ttl-accent);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}

.ttl .ttl-link:hover,
.ttl .ttl-link:focus-visible {
	color: var(--ttl-accent-dark);
}

/* ---- Buttons ----
   Real <button>s, so every property the theme's global button rules touch
   is set explicitly here. */

.ttl .ttl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 11px 22px;
	border: 1px solid var(--ttl-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ttl-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ttl .ttl-btn:hover:not(:disabled),
.ttl .ttl-btn:focus:not(:disabled) {
	background: #fff;
	border-color: var(--ttl-accent);
	color: var(--ttl-accent);
}

.ttl .ttl-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--ttl-ring);
}

.ttl .ttl-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.ttl .ttl-btn--primary {
	background: var(--ttl-accent);
	border-color: var(--ttl-accent);
	color: #fff;
	box-shadow: var(--ttl-shadow);
}

.ttl .ttl-btn--primary:hover:not(:disabled),
.ttl .ttl-btn--primary:focus:not(:disabled) {
	background: var(--ttl-accent-dark);
	border-color: var(--ttl-accent-dark);
	color: #fff;
}

.ttl .ttl-btn--block {
	width: 100%;
	min-height: 50px;
}

.ttl .ttl-btn--sm {
	min-height: 36px;
	padding: 7px 16px;
	font-size: 0.88rem;
}

/* Busy spinner, shown inside the button while a request is in flight. */
.ttl-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ttl-spin 0.7s linear infinite;
}

.ttl-btn.is-busy .ttl-spinner {
	display: inline-block;
}

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

/* ---- Alerts ---- */

.ttl-alert {
	margin: 0 0 16px;
	padding: 11px 16px;
	border-radius: var(--ttl-radius-sm);
	font-size: 14px;
	font-weight: 600;
}

.ttl-alert--error {
	background: #fef5f5;
	border: 1px solid color-mix(in srgb, var(--ttl-error) 40%, var(--ttl-border));
	color: color-mix(in srgb, var(--ttl-error) 78%, #000);
}

.ttl-alert--success {
	background: #eef9f3;
	border: 1px solid color-mix(in srgb, var(--ttl-success) 40%, var(--ttl-border));
	color: color-mix(in srgb, var(--ttl-success) 75%, #000);
}

/* ---- Lost password / sent ---- */

.ttl-back {
	margin-top: 18px;
	text-align: center;
}

.ttl-sent {
	text-align: center;
}

.ttl-sent__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e9f7f7;
	color: var(--ttl-accent);
}

.ttl-sent .ttl-hint {
	margin-bottom: 0;
}

/* ---- Logged in ---- */

.ttl-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---- Register ---- */

.ttl-register {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
	font-size: 0.9rem;
	color: var(--ttl-muted);
}

/* ---- Cloudflare Turnstile ----
   Height reserved up front (the flexible widget is 65px) so the button
   doesn't jump when the widget arrives. */

.ttl-turnstile {
	min-height: 65px;
	margin: 0 0 18px;
}

.ttl-turnstile iframe {
	display: block;
}

/* ---- Social login (Nextend) ---- */

.ttl-social {
	margin-top: 22px;
	text-align: center;
}

.ttl-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	font-size: 0.85rem;
	color: var(--ttl-muted);
}

.ttl-divider::before,
.ttl-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--ttl-border);
}

.ttl-social__buttons {
	display: flex;
	justify-content: center;
}

/* Nextend's own container: keep it centred and free of stray margins. */
.ttl-social__buttons .nsl-container {
	margin: 0 auto !important;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
	.ttl-card {
		padding: 20px;
	}
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
	.ttl .ttl-card .ttl-field input.ttl-input,
	.ttl .ttl-btn,
	.ttl-eye,
	.ttl-check__box {
		transition: none;
	}

	.ttl-spinner {
		animation-duration: 1.5s;
	}
}
