/**
 * Login, register, forgot password, and My Account shortcodes.
 * Matches TNF chrome (see frontend-chrome.css).
 */

body.tnf-auth-page .wp-site-blocks > main,
body.tnf-auth-page main.wp-block-group {
	max-width: 100%;
}

.tnf-auth-shell {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px 48px;
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.tnf-account-shell {
	max-width: 960px;
}

.tnf-auth-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 28px 24px 32px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.tnf-auth-title {
	margin: 0 0 20px;
	font-size: clamp(1.5rem, 4vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #111;
}

.tnf-auth-form p {
	margin: 0 0 16px;
}

.tnf-auth-form label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

.tnf-auth-form input[type='text'],
.tnf-auth-form input[type='email'],
.tnf-auth-form input[type='password'],
.tnf-auth-form textarea {
	width: 100%;
	max-width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.tnf-auth-form textarea {
	min-height: 120px;
	resize: vertical;
}

.tnf-auth-form button[type='submit'],
.tnf-submit-form button[type='submit'] {
	display: inline-block;
	margin-top: 4px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: linear-gradient(180deg, #d42036 0%, #8f1128 100%);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}

.tnf-auth-form button[type='submit']:hover,
.tnf-submit-form button[type='submit']:hover {
	filter: brightness(1.05);
}

.tnf-auth-links {
	font-size: 14px;
	margin-top: 8px !important;
}

.tnf-auth-links a {
	color: #8f1128;
	font-weight: 600;
	text-decoration: none;
}

.tnf-auth-links a:hover {
	text-decoration: underline;
}

/* Account dashboard */
.tnf-account-box .tnf-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.tnf-kpi-card {
	background: #f7f7f7;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 14px 16px;
	text-align: center;
}

.tnf-kpi-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #666;
	margin-bottom: 6px;
}

.tnf-kpi-value {
	font-size: 1.65rem;
	font-weight: 800;
	color: #111;
}

.tnf-account-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 24px;
}

.tnf-dash-card {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 20px 20px 8px;
}

.tnf-dash-card h3 {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 800;
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
}

.tnf-dash-card p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #333;
}

.tnf-dash-card a {
	color: #8f1128;
	font-weight: 600;
	text-decoration: none;
}

.tnf-dash-card a:hover {
	text-decoration: underline;
}

.tnf-dash-note {
	font-size: 14px;
	color: #555;
}

.tnf-role-badge,
.tnf-sub-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.tnf-role-badge {
	background: #e8e8e8;
	color: #333;
}

.tnf-sub-badge.is-active {
	background: rgba(34, 139, 34, 0.15);
	color: #1a6b1a;
}

.tnf-sub-badge.is-inactive {
	background: rgba(0, 0, 0, 0.06);
	color: #666;
}

.tnf-submit-card {
	background: #fff;
	border-color: #ddd;
}

.tnf-submissions-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tnf-submissions-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.tnf-submissions-list li:last-child {
	border-bottom: none;
}

.tnf-submissions-meta {
	display: block;
	font-size: 12px;
	color: #888;
	font-weight: 400;
}

.tnf-sub-status {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 4px;
	background: #eee;
	color: #444;
}

.tnf-sub-status--pending {
	background: #fff3cd;
	color: #856404;
}

.tnf-sub-status--approved {
	background: #d4edda;
	color: #155724;
}

.tnf-sub-status--rejected {
	background: #f8d7da;
	color: #721c24;
}

body.tnf-auth-page .notice.notice-success,
body.tnf-auth-page .notice.notice-error {
	border-radius: 6px;
	border-left-width: 4px;
}
