/*
Theme Name: TSN Accounting Portal
Theme URI: https://tsnacc.techsolutionnetwork.com/
Author: TSN GROUP (PVT) LTD
Author URI: https://techsolutionnetwork.com/
Description: A secure, responsive gateway theme for the TSN Accounting WordPress plugin.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tsn-accounting-portal
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--tsn-navy: #13233f;
	--tsn-navy-deep: #0a1428;
	--tsn-blue: #1f6feb;
	--tsn-cyan: #43c6db;
	--tsn-orange: #f59e0b;
	--tsn-white: #ffffff;
	--tsn-slate-50: #f7f9fc;
	--tsn-slate-100: #edf2f7;
	--tsn-slate-500: #64748b;
	--tsn-slate-700: #334155;
	--tsn-danger: #b42318;
	--tsn-success: #067647;
	--tsn-radius: 22px;
	--tsn-shadow: 0 24px 70px rgba(10, 20, 40, 0.22);
}

* {
	box-sizing: border-box;
}

html {
	font-family: Calibri, "Segoe UI", Arial, sans-serif;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	margin: 0;
	color: var(--tsn-slate-700);
	background: var(--tsn-slate-50);
}

a {
	color: var(--tsn-blue);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tsn-portal {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
	min-height: 100vh;
}

.tsn-portal__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100vh;
	padding: clamp(32px, 6vw, 84px);
	overflow: hidden;
	color: var(--tsn-white);
	background:
		radial-gradient(circle at 85% 18%, rgba(67, 198, 219, 0.28), transparent 26%),
		radial-gradient(circle at 12% 90%, rgba(245, 158, 11, 0.20), transparent 30%),
		linear-gradient(140deg, var(--tsn-navy-deep), var(--tsn-navy) 60%, #173a67);
}

.tsn-portal__brand::after {
	position: absolute;
	top: 18%;
	right: -170px;
	width: 480px;
	height: 480px;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.035), 0 0 0 144px rgba(255, 255, 255, 0.025);
}

.tsn-brandmark,
.tsn-portal__intro,
.tsn-portal__assurance {
	position: relative;
	z-index: 1;
}

.tsn-brandmark {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tsn-brandmark__symbol {
	display: grid;
	width: 52px;
	height: 52px;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0.06em;
	place-items: center;
	background: linear-gradient(135deg, var(--tsn-orange), #ffd166);
	border-radius: 15px;
	box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.tsn-brandmark__logo {
	display: block;
	width: 168px;
	height: auto;
	padding: 8px 10px;
	background: #ffffff;
	border-radius: 13px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.tsn-brandmark__text strong,
.tsn-brandmark__text span {
	display: block;
}

.tsn-brandmark__text strong {
	font-size: 18px;
	letter-spacing: 0.03em;
}

.tsn-brandmark__text span {
	font-size: 12px;
	letter-spacing: 0.11em;
	opacity: 0.72;
	text-transform: uppercase;
}

.tsn-portal__intro {
	max-width: 700px;
	margin: 60px 0;
}

.tsn-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 13px;
	margin: 0 0 22px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	text-transform: uppercase;
}

.tsn-eyebrow::before {
	width: 8px;
	height: 8px;
	content: "";
	background: #42d392;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(66, 211, 146, 0.16);
}

.tsn-portal__intro h1 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(42px, 6.5vw, 78px);
	font-weight: 750;
	line-height: 0.99;
	letter-spacing: -0.045em;
}

.tsn-portal__intro p {
	max-width: 630px;
	margin: 28px 0 0;
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.76);
}

.tsn-portal__assurance {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-top: 22px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.68);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tsn-portal__assurance span::before {
	margin-right: 8px;
	font-weight: 700;
	color: #42d392;
	content: "✓";
}

.tsn-portal__access {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(28px, 5vw, 76px);
	background: var(--tsn-slate-50);
}

.tsn-access-card {
	width: 100%;
	max-width: 480px;
	padding: clamp(28px, 4.5vw, 48px);
	background: var(--tsn-white);
	border: 1px solid var(--tsn-slate-100);
	border-radius: var(--tsn-radius);
	box-shadow: var(--tsn-shadow);
}

.tsn-access-card__icon {
	display: grid;
	width: 48px;
	height: 48px;
	margin-bottom: 24px;
	color: var(--tsn-blue);
	background: #eaf2ff;
	border-radius: 14px;
	place-items: center;
}

.tsn-access-card__icon svg {
	width: 24px;
	height: 24px;
}

.tsn-access-card h2 {
	margin: 0;
	font-size: 30px;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: var(--tsn-navy-deep);
}

.tsn-access-card__lead {
	margin: 12px 0 28px;
	color: var(--tsn-slate-500);
}

.tsn-login-form label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--tsn-slate-700);
}

.tsn-login-form input[type="text"],
.tsn-login-form input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	font: inherit;
	color: var(--tsn-navy-deep);
	background: var(--tsn-white);
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tsn-login-form input[type="text"]:focus,
.tsn-login-form input[type="password"]:focus {
	border-color: var(--tsn-blue);
	box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.tsn-login-form .login-username,
.tsn-login-form .login-password {
	margin: 0 0 18px;
}

.tsn-login-form .login-remember {
	margin: 4px 0 22px;
	font-size: 14px;
}

.tsn-login-form .login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.tsn-login-form .login-submit {
	margin: 0;
}

.tsn-login-form .button,
.tsn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	padding: 12px 18px;
	font: inherit;
	font-weight: 700;
	color: var(--tsn-white);
	text-decoration: none;
	cursor: pointer;
	background: linear-gradient(135deg, var(--tsn-blue), #1756b5);
	border: 0;
	border-radius: 11px;
	box-shadow: 0 12px 22px rgba(31, 111, 235, 0.22);
}

.tsn-button--secondary {
	margin-top: 12px;
	color: var(--tsn-navy);
	background: var(--tsn-slate-100);
	box-shadow: none;
}

.tsn-access-card__meta {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	margin-top: 24px;
	font-size: 13px;
	color: var(--tsn-slate-500);
	border-top: 1px solid var(--tsn-slate-100);
}

.tsn-access-card__meta a {
	font-weight: 700;
	text-decoration: none;
}

.tsn-alert {
	padding: 14px 16px;
	margin: 20px 0;
	font-size: 14px;
	color: #7a2e0e;
	background: #fff4e5;
	border-left: 4px solid var(--tsn-orange);
	border-radius: 8px;
}

.tsn-content {
	width: min(920px, calc(100% - 40px));
	padding: 46px;
	margin: 60px auto;
	background: var(--tsn-white);
	border-radius: var(--tsn-radius);
	box-shadow: 0 20px 50px rgba(10, 20, 40, 0.10);
}

@media (max-width: 900px) {
	.tsn-portal {
		display: block;
	}

	.tsn-portal__brand {
		min-height: auto;
		padding: 30px 28px 52px;
	}

	.tsn-portal__intro {
		margin: 54px 0 34px;
	}

	.tsn-portal__assurance {
		display: none;
	}

	.tsn-portal__access {
		padding: 28px 20px 46px;
	}

	.tsn-access-card {
		max-width: 600px;
		margin-top: -28px;
	}
}

@media (max-width: 480px) {
	.tsn-portal__intro h1 {
		font-size: 42px;
	}

	.tsn-access-card__meta {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
