/* TF Prisijungimas / Registracija — [tf_login_form] / [tf_register_form] */

.tfa {
	--tfa-heading: #0c1421;
	--tfa-text: #313957;
	--tfa-placeholder: #8897ad;
	--tfa-input-bg: #f7fbff;
	--tfa-border: #e9eef1;
	--tfa-btn-bg: #41413e;
	--tfa-btn-text: #ffffff;
	--tfa-link: #1d4ae9;
	--tfa-error-bg: #fef2f2;
	--tfa-error-text: #b91c1c;
	--tfa-error-border: #fecaca;
	--tfa-success-bg: #f0fdf4;
	--tfa-success-text: #15803d;
	--tfa-success-border: #bbf7d0;

	box-sizing: border-box;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
}

/*
 * Oxygen/Breakdance wraps shortcode output in a flex item
 * (.oxy-shortcode) that by default shrinks to its content's
 * max-content width instead of stretching — which makes a CSS
 * Grid's `1fr` track collapse to 0 during that measurement.
 * Force the wrapper to stretch whenever it contains our form.
 */
.oxy-shortcode:has(.tfa__grid) {
	width: 100%;
	flex: 1 1 auto;
}

.tfa *,
.tfa *::before,
.tfa *::after {
	box-sizing: inherit;
}

.tfa__grid {
	display: grid;
	grid-template-columns: minmax(320px, 460px) minmax(280px, 1fr);
	gap: 56px;
	align-items: stretch;
	width: 100%;
	padding: 48px 24px;
	min-height: 640px;
}

.tfa__panel {
	display: flex;
	align-items: center;
}

.tfa__panel-inner {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

.tfa__notice {
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 20px;
}

.tfa__notice--error {
	background: var(--tfa-error-bg);
	color: var(--tfa-error-text);
	border: 1px solid var(--tfa-error-border);
}

.tfa__notice--success {
	background: var(--tfa-success-bg);
	color: var(--tfa-success-text);
	border: 1px solid var(--tfa-success-border);
}

.tfa__heading {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--tfa-heading);
	margin: 0 0 10px;
}

.tfa__wave {
	display: inline-block;
}

.tfa__subtext {
	font-size: 15px;
	line-height: 1.5;
	color: var(--tfa-text);
	margin: 0 0 32px;
}

.tfa__form {
	margin: 0;
}

.tfa__field {
	margin-bottom: 20px;
}

.tfa__field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--tfa-heading);
	margin-bottom: 8px;
}

.tfa__field input {
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--tfa-border);
	background: var(--tfa-input-bg);
	font-size: 15px;
	color: var(--tfa-heading);
	font-family: inherit;
}

.tfa__field input::placeholder {
	color: var(--tfa-placeholder);
}

.tfa__field input:focus {
	outline: 2px solid var(--tfa-link);
	outline-offset: 1px;
}

.tfa__forgot {
	text-align: right;
	margin: -8px 0 24px;
	font-size: 14px;
}

.tfa__forgot a {
	color: var(--tfa-link);
	text-decoration: none;
}

.tfa__forgot a:hover {
	text-decoration: underline;
}

.tfa__btn {
	display: block;
	width: 100%;
	padding: 16px;
	border-radius: 14px;
	border: none;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.tfa__btn--primary {
	background: var(--tfa-btn-bg);
	color: var(--tfa-btn-text);
}

.tfa__btn--primary:hover {
	opacity: 0.9;
}

.tfa__btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.tfa__divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 28px 0;
	color: var(--tfa-placeholder);
	font-size: 13px;
}

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

.tfa__social {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 28px;
}

.tfa__social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid var(--tfa-border);
	background: #ffffff;
	color: var(--tfa-heading);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease;
}

.tfa__social-btn:hover {
	background: var(--tfa-input-bg);
}

.tfa__social-btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.tfa__switch {
	text-align: center;
	font-size: 14px;
	color: var(--tfa-text);
	margin: 0;
}

.tfa__switch a {
	color: var(--tfa-link);
	text-decoration: none;
	font-weight: 600;
}

.tfa__switch a:hover {
	text-decoration: underline;
}

.tfa__media {
	width: 100%;
	border-radius: 32px;
	background-size: cover;
	background-position: center;
	background-color: #e5e5e0;
	min-height: 480px;
	position: relative;
	overflow: hidden;
}

.tfa__media--placeholder {
	background-image: linear-gradient(160deg, #dce3d1 0%, #b9c2ae 45%, #8b9a86 100%);
}

.tfa--loggedin {
	max-width: 640px;
	margin: 48px auto;
	padding: 24px;
	text-align: center;
}

@media (max-width: 960px) {
	.tfa__grid {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 32px 20px;
	}

	.tfa__media {
		order: -1;
		min-height: 220px;
		border-radius: 24px;
	}

	.tfa__panel-inner {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.tfa__heading {
		font-size: 26px;
	}

	.tfa__grid {
		padding: 24px 16px;
	}
}
