/*
 * TAT Portal — Login Card Styles
 *
 * Scoped to the [tat_login_form] shortcode output (.tat-card).
 * Page layout, background, header, and footer are handled by the theme.
 *
 * Consumes CSS custom properties from the 1792 Exchange theme:
 *   --Noble, --Iron, --Font-Family-Primary-Font, --Shadow
 */

/* ─── Login card ─────────────────────────────────────────────────────────────── */

.tat-card {
	background: #fff;
	border-radius: 16px;
	padding: 64px;
	width: 100%;
	max-width: 550px;
	margin-inline: auto;
	box-shadow: var(--Shadow, 1px 7px 16px rgba(0,0,0,0.05), 4px 29px 30px rgba(0,0,0,0.03), 7px 64px 40px rgba(0,0,0,0.02), 2px 7px 37px rgba(0,0,0,0.02));
	display: flex;
	flex-direction: column;
	gap: 48px;
    box-sizing: border-box;
}

/* ─── Card header ────────────────────────────────────────────────────────────── */

.tat-card__header {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tat-card__heading {
	font-size: 32px;
	font-weight: 400;
	color: var(--Noble, #12284C);
	line-height: 1.2;
	margin: 0 auto;
	max-width: 370px;
}

.tat-card__heading span {
    display: block;
}

.tat-card__subheading {
	font-size: 16px;
	font-weight: 400;
	color: var(--Noble, #12284C);
	line-height: 1.35;
	margin: 0;
}

/* ─── Form ───────────────────────────────────────────────────────────────────── */

.tat-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tat-form__fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tat-input-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tat-input-inner {
	background: #fff;
	box-shadow: var(--Shadow, 1px 7px 16px rgba(0,0,0,0.05), 4px 29px 30px rgba(0,0,0,0.03), 7px 64px 40px rgba(0,0,0,0.02), 2px 7px 37px rgba(0,0,0,0.02));
	border-radius: 16px;
	height: 64px;
	padding: 8px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	outline: 2px solid transparent;
	outline-offset: 0;
	transition: outline-color 0.15s ease;
}

.tat-input-inner:hover:not(:focus-within) {
	outline-color: rgba(18, 40, 76, 0.2);
}

.tat-input-inner:focus-within {
	outline-color: var(--Noble, #12284C);
}

.tat-input-inner--password {
	position: relative;
}

.tat-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 16px;
	font-weight: 400;
	font-family: var(--Font-Family-Primary-Font, 'Figtree', sans-serif);
	color: var(--Noble, #12284C);
	height: 100%;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.tat-input::placeholder {
	color: var(--Iron, #4D4D4F);
}

.tat-input:focus,
.tat-input:focus-visible {
	outline: none;
}

/* Password visibility toggle */
.tat-toggle-pw {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px 12px;
	color: var(--Iron, #4D4D4F);
	display: flex;
	align-items: center;
	flex-shrink: 0;
	border-radius: 8px;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.tat-toggle-pw:hover,
.tat-toggle-pw:focus-visible {
	color: var(--Noble, #12284C);
	background-color: rgba(18, 40, 76, 0.06);
	outline: none;
}

/* Forgot password link */
.tat-forgot-link {
	font-size: 12px;
	font-weight: 300;
	color: var(--Noble, #12284C);
	text-align: center;
	text-decoration: none;
	display: block;
}

.tat-forgot-link:hover,
.tat-forgot-link:focus-visible {
	text-decoration: underline;
}

/* ─── Error message ──────────────────────────────────────────────────────────── */

.tat-error {
	font-size: 14px;
	font-weight: 400;
	color: #B91C1C;
	font-family: var(--Font-Family-Primary-Font, 'Figtree', sans-serif);
	text-align: center;
}

/* ─── Success / info notice ─────────────────────────────────────────────────── */

.tat-notice {
	font-size: 14px;
	font-weight: 400;
	font-family: var(--Font-Family-Primary-Font, 'Figtree', sans-serif);
	text-align: center;
	line-height: 1.5;
}

.tat-notice--success {
	color: #166534;
}

/* ─── Sign In button (theme Button 3) ─────────────────────────────────────────── */

.tat-submit-shell {
	display: flex;
    justify-content: center;
    align-items: center;
	/* width: 100%; */
	box-sizing: border-box;
}

.tat-submit-shell .tat-submit {
	appearance: none;
	box-sizing: border-box;
	margin: 0;
	/* width: 100%; */
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--xs, 8px) var(--wp--preset--spacing--m, 24px);
	border: var(--wp--preset--spacing--xs, 8px) solid var(--White, #fff);
	border-radius: var(--wp--custom--border-radius--default, 16px);
	background-color: var(--White, #fff);
    box-shadow:
    2px 7px 18.5px rgba(0, 0, 0, 0.02),
    7px 64px 20px rgba(0, 0, 0, 0.02),
    4px 29px 15px rgba(0, 0, 0, 0.03),
    1px 7px 8px rgba(0, 0, 0, 0.05);
	font-family: var(--Font-Family-Primary-Font, 'Figtree', sans-serif);
	font-size: var(--wp--preset--font-size--s, 1rem);
	font-weight: 400;
	line-height: 2;
	letter-spacing: 1.6px;
	/* text-transform: uppercase; */
	color: var(--Iron, #4D4D4F);
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.37, 0, 0.63, 1);
}

.tat-submit-shell .tat-submit:hover,
.tat-submit-shell .tat-submit:focus {
	background-color: var(--Courage, #A32035);
	border-color: var(--White, #fff);
	color: var(--White, #fff);
}

.tat-submit-shell .tat-submit:focus {
	outline: none;
}

.tat-submit-shell .tat-submit:focus-visible {
	outline: 2px solid var(--Valor, #004A98);
	outline-offset: 2px;
}

.tat-submit-shell .tat-submit:active {
	background-color: var(--Courage, #A32035);
	border-color: var(--White, #fff);
	color: var(--White, #fff);
}

a.tat-submit {
	text-decoration: none;
}

/* ─── "Don't have an account?" copy ─────────────────────────────────────────── */

.tat-signup-copy {
	font-size: 16px;
	font-weight: 400;
	color: var(--Noble, #12284C);
	text-align: center;
	margin: 0;
}

.tat-signup-link {
	font-weight: 600;
	color: var(--Noble, #12284C);
	text-decoration: underline;
}

.tat-signup-link:hover,
.tat-signup-link:focus-visible {
	opacity: 0.75;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	.tat-card {
		padding: 32px 24px;
		gap: 32px;
	}

	.tat-card__heading {
		font-size: 24px;
	}
}
