/**
 * Standalone free agency signup
 */

.dte-afs {
	--afs-ink: #0f172a;
	--afs-muted: #64748b;
	--afs-line: #e2e8f0;
	--afs-purple: #6d3df5;
	--afs-purple-dark: #5b21b6;
	max-width: 520px;
	margin: 40px auto 64px;
	padding: 0 20px;
	font-family: Inter, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--afs-ink);
}

.dte-afs *,
.dte-afs *::before,
.dte-afs *::after {
	box-sizing: border-box;
}

.dte-afs-card {
	background:
		radial-gradient(circle at 12% 10%, rgba(109, 61, 245, 0.08), transparent 26%),
		#fff;
	border: 1px solid var(--afs-line);
	border-radius: 20px;
	padding: 34px 30px 28px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -22px rgba(15, 23, 42, 0.12);
}

.dte-afs-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 22px;
}

.dte-afs-icon {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--afs-purple);
	color: #fff;
	font-size: 1rem;
}

.dte-afs-title {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.15;
	color: var(--afs-ink);
}

.dte-afs-title em {
	color: var(--afs-purple);
	font-style: normal;
}

.dte-afs-sub {
	position: relative;
	margin: 0;
	color: var(--afs-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.dte-afs-sub::after {
	content: "";
	display: block;
	width: 86px;
	border-bottom: 2px dashed #c4b5fd;
	margin-top: 14px;
}

.dte-afs-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dte-afs-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.dte-afs-field span {
	font-size: 0.9rem;
	font-weight: 700;
	color: #111827;
}

.dte-afs-field input,
.dte-afs-field select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	font: inherit;
	background: #fff;
	color: #111827;
}

.dte-afs-field input:focus,
.dte-afs-field select:focus {
	outline: 2px solid rgba(109, 61, 245, 0.25);
	border-color: var(--afs-purple);
}

.dte-afs-hint {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--afs-muted);
}

.dte-afs-field--password {
	position: relative;
}

.dte-afs-field--password input {
	padding-right: 84px;
}

.dte-afs-show-pwd {
	position: absolute;
	right: 10px;
	bottom: 10px;
	border: 0;
	background: transparent;
	color: var(--afs-purple);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	padding: 4px 8px;
}

.dte-afs-terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 2px 0 0;
	color: #334155;
	font-size: 0.9rem;
	line-height: 1.45;
}

.dte-afs-terms input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.dte-afs-terms a {
	color: #5d0e6b;
	font-weight: 600;
	text-decoration: none;
}

.dte-afs-terms a:hover {
	text-decoration: underline;
}

.dte-afs-alert {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 0.92rem;
	line-height: 1.45;
}

.dte-afs-alert[hidden] {
	display: none !important;
}

.dte-afs-alert.is-err {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.dte-afs-alert.is-ok {
	background: #ecfdf5;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.dte-afs-alert a {
	color: inherit;
	font-weight: 700;
}

.dte-afs-cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	margin-top: 4px;
	padding: 14px 18px !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--afs-purple) !important;
	color: #fff !important;
	font: inherit !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	box-shadow: 0 12px 28px rgba(109, 61, 245, 0.28);
}

.dte-afs-cta:hover:not(:disabled) {
	background: var(--afs-purple-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.dte-afs-cta:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.dte-afs-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: center;
	margin: 18px 0 0;
	color: #94a3b8;
	font-size: 0.86rem;
	font-weight: 600;
}

.dte-afs-login {
	margin: 18px 0 0;
	text-align: center;
	color: #64748b;
	font-size: 0.92rem;
}

.dte-afs-login a {
	color: #5d0e6b;
	text-decoration: none;
}

.dte-afs-login a:hover {
	text-decoration: underline;
}
