/**
 * Atlas Signal public company client signup / login / dashboard.
 */

:root {
	--atlas-navy: #001b3d;
	--atlas-navy-soft: rgba(0, 27, 61, 0.06);
	--atlas-teal: #18b7a0;
	--atlas-teal-hover: #149e89;
	--atlas-teal-soft: rgba(24, 183, 160, 0.12);
	--atlas-text: #1a1f2c;
	--atlas-muted: #6b7280;
	--atlas-border: #d7dce3;
	--atlas-bg: #f4f6f9;
	--atlas-white: #ffffff;
	--atlas-danger: #b42318;
	--atlas-danger-bg: #fef3f2;
	--atlas-success: #027a48;
	--atlas-success-bg: #ecfdf3;
	--atlas-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.atlas-client-page .atlas-client-main {
	width: 100%;
	font-family: var(--atlas-font);
	color: var(--atlas-text);
	-webkit-font-smoothing: antialiased;
}

.atlas-client-page.atlas-client-signup,
.atlas-client-page.atlas-client-dashboard {
	background: var(--atlas-bg);
}

.atlas-client-main *,
.atlas-client-main *::before,
.atlas-client-main *::after {
	box-sizing: border-box;
}

.atlas-client-shell {
	width: min(720px, calc(100% - 32px));
	margin: 0 auto;
	padding: 40px 0 64px;
}

.atlas-client-hero {
	text-align: center;
	margin-bottom: 28px;
}

.atlas-client-brand {
	display: inline-flex;
	margin-bottom: 20px;
}

.atlas-client-brand img {
	display: block;
	max-width: 150px;
	height: auto;
}

.atlas-client-hero h1 {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 3vw, 2rem);
	line-height: 1.25;
	font-weight: 700;
	color: var(--atlas-navy);
}

.atlas-client-lead {
	margin: 0 auto 12px;
	max-width: 560px;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--atlas-text);
	font-weight: 500;
}

.atlas-client-payment {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--atlas-navy);
}

.atlas-client-card {
	background: var(--atlas-white);
	border: 1px solid rgba(0, 27, 61, 0.08);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 27, 61, 0.06);
	padding: 28px 28px 24px;
}

.atlas-client-success-card {
	text-align: center;
}

.atlas-client-success-card .atlas-client-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	margin-top: 8px;
}

.atlas-client-redirect-note {
	margin: 14px 0 0;
	font-size: 0.9rem;
	color: var(--atlas-muted);
}

.atlas-client-success-card h2 {
	margin: 0 0 10px;
	color: var(--atlas-navy);
	font-size: 1.25rem;
}

.atlas-reg-section-title {
	margin: 8px 0 18px;
	padding-top: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--atlas-navy);
	border-top: 1px solid var(--atlas-navy-soft);
}

.atlas-reg-section-title:first-of-type {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

.atlas-reg-row {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}

.atlas-reg-row label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--atlas-text);
}

.atlas-reg-row--captcha {
	align-items: start;
}

.atlas-reg-captcha-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--atlas-text);
}

.atlas-reg-captcha-widget {
	min-height: 44px;
}

.atlas-reg-captcha-note {
	margin: 0;
	font-size: 0.8rem;
	color: var(--atlas-muted);
}

.atlas-reg-row input,
.atlas-reg-row select,
.atlas-login-form input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--atlas-border);
	border-radius: 8px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--atlas-text);
	background: var(--atlas-white);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.atlas-reg-row input:focus,
.atlas-reg-row select:focus,
.atlas-login-form input:focus {
	outline: none;
	border-color: var(--atlas-teal);
	box-shadow: 0 0 0 3px var(--atlas-teal-soft);
}

.atlas-input-prefix,
.atlas-input-with-toggle,
.atlas-input-with-icon {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.atlas-input-prefix .atlas-prefix {
	position: absolute;
	left: 12px;
	z-index: 1;
	font-size: 0.9rem;
	color: var(--atlas-muted);
	pointer-events: none;
}

.atlas-input-prefix input {
	padding-left: 68px;
}

.atlas-password-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.atlas-eye {
	width: 20px;
	height: 20px;
	display: block;
	background: center / contain no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M2.25 12s3.75-6.75 9.75-6.75S21.75 12 21.75 12s-3.75 6.75-9.75 6.75S2.25 12 2.25 12z'/%3E%3Ccircle cx='12' cy='12' r='3' stroke-width='1.8'/%3E%3C/svg%3E");
}

.atlas-password-toggle.is-visible .atlas-eye {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3 3l18 18M9.9 9.9A3 3 0 0012 15a3 3 0 002.1-.9M6.6 6.6C4.4 8 2.8 10.2 2.3 12c.7 2.4 4.1 6.8 9.7 6.8 1.7 0 3.2-.4 4.5-1M17.4 17.4c2-1.3 3.5-3.3 4-5.4-.6-2.1-2.5-4.7-5.2-6.2'/%3E%3C/svg%3E");
}

.atlas-reg-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 22px;
}

.atlas-client-btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	background: var(--atlas-teal);
	color: var(--atlas-white);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 12px 22px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.atlas-client-btn:hover:not(:disabled) {
	background: var(--atlas-teal-hover);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(24, 183, 160, 0.28);
}

.atlas-client-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	background: #9aa3b2;
}

.atlas-client-btn--block {
	width: 100%;
	margin-top: 8px;
}

.atlas-client-btn--small {
	padding: 8px 14px;
	font-size: 0.85rem;
}

.atlas-client-trust {
	margin-top: 36px;
	padding-top: 8px;
}

.atlas-client-trust h2 {
	margin: 22px 0 8px;
	font-size: 1.05rem;
	color: var(--atlas-navy);
}

.atlas-client-trust p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--atlas-text);
}

.atlas-client-text-link {
	color: var(--atlas-teal);
	font-weight: 600;
	text-decoration: underline;
}

.atlas-client-text-link:hover {
	color: var(--atlas-teal-hover);
}

.atlas-client-footer-link {
	margin: 28px 0 0;
	text-align: center;
	color: var(--atlas-muted);
	font-size: 0.95rem;
}

.atlas-client-footer-link a {
	color: var(--atlas-teal);
	font-weight: 600;
}

.atlas-client-alert {
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 16px;
}

.atlas-client-alert p {
	margin: 0 0 4px;
	font-size: 0.9rem;
}

.atlas-client-alert p:last-child {
	margin-bottom: 0;
}

.atlas-client-alert--error {
	background: var(--atlas-danger-bg);
	color: var(--atlas-danger);
	border: 1px solid rgba(180, 35, 24, 0.15);
}

.atlas-client-alert--success {
	background: var(--atlas-success-bg);
	color: var(--atlas-success);
	border: 1px solid rgba(2, 122, 72, 0.15);
}

/* Login */
.atlas-client-login .atlas-client-main {
	background: linear-gradient(160deg, var(--atlas-navy) 0%, #003366 55%, #0a4d6e 100%);
}

.atlas-login-shell {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 48px 16px;
	min-height: 60vh;
	background: #fff !important;
}

.atlas-login-card {
	width: min(420px, 100%);
	background: var(--atlas-white);
	border-radius: 12px;
	padding: 28px 28px 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.atlas-login-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.atlas-login-brand img {
    width: 60%;
    height: auto;
    object-fit: cover;
}

.atlas-login-brand-name {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--atlas-navy);
}

.atlas-login-brand-sub {
	margin: 2px 0 0;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--atlas-muted);
	text-transform: uppercase;
}

.atlas-login-card h1 {
	margin: 0 0 6px;
	font-size: 1.55rem;
	color: var(--atlas-navy);
}

.atlas-login-subtitle {
	margin: 0 0 20px;
	color: var(--atlas-muted);
	font-size: 0.95rem;
}

.atlas-login-form label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.9rem;
	font-weight: 600;
}

.atlas-login-form .atlas-input-with-icon {
	margin-bottom: 14px;
}

.atlas-login-form .atlas-input-with-icon input {
	padding-left: 42px;
}

.atlas-login-form .atlas-input-with-toggle input {
	padding-right: 44px;
}

.atlas-icon {
	position: absolute;
	left: 14px;
	width: 18px;
	height: 18px;
	opacity: 0.65;
	pointer-events: none;
}

.atlas-icon-email {
	background: center / contain no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3 7.5l9 6 9-6M4.5 6h15A1.5 1.5 0 0121 7.5v9A1.5 1.5 0 0119.5 18h-15A1.5 1.5 0 013 16.5v-9A1.5 1.5 0 014.5 6z'/%3E%3C/svg%3E");
}

.atlas-icon-lock {
	background: center / contain no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M7 10V8a5 5 0 0110 0v2m-9 0h8a2 2 0 012 2v6a2 2 0 01-2 2H8a2 2 0 01-2-2v-6a2 2 0 012-2z'/%3E%3C/svg%3E");
}

.atlas-login-recovery {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 18px;
}

.atlas-login-recovery a {
	font-size: 0.85rem;
	color: var(--atlas-teal);
	text-decoration: underline;
	font-weight: 500;
}

.atlas-login-signup-hint {
	margin: 18px 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--atlas-muted);
}

.atlas-login-signup-hint a {
	color: var(--atlas-teal);
	font-weight: 600;
}

/* Dashboard */
.atlas-dash {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px 0 48px;
}

.atlas-dash-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.atlas-dash-welcome {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--atlas-navy);
}

.atlas-dash-welcome img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.atlas-dash-user {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--atlas-navy);
}

.atlas-dash-user-name {
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atlas-dash-report-name {
	max-width: 200px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--atlas-teal-soft);
	color: var(--atlas-navy);
	font-size: 0.8rem;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.atlas-dash-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--atlas-navy);
	color: var(--atlas-white);
	font-size: 0.75rem;
	font-weight: 700;
	flex-shrink: 0;
}

.atlas-dash-header {
	margin-bottom: 18px;
}

.atlas-dash-header h1 {
	margin: 0 0 6px;
	font-size: 1.8rem;
	color: var(--atlas-navy);
}

.atlas-dash-header p {
	margin: 0;
	color: var(--atlas-muted);
}

.atlas-dash-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin: 0 0 22px;
	padding: 16px 18px;
	background: var(--atlas-white);
	border: 1px solid rgba(0, 27, 61, 0.08);
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0, 27, 61, 0.04);
}

.atlas-dash-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 150px;
}

.atlas-dash-filter-field--report {
	min-width: 220px;
	flex: 1 1 220px;
}

.atlas-dash-filter-field label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--atlas-muted);
}

.atlas-dash-filter-field input[type='date'],
.atlas-dash-filter-field select {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--atlas-border);
	border-radius: 8px;
	background: var(--atlas-white);
	font: inherit;
	font-size: 0.9rem;
	color: var(--atlas-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.atlas-dash-filter-field input[type='date']:focus,
.atlas-dash-filter-field select:focus {
	outline: none;
	border-color: var(--atlas-teal);
	box-shadow: 0 0 0 3px var(--atlas-teal-soft);
}

.atlas-dash-filter-sep {
	display: flex;
	align-items: center;
	height: 42px;
	margin-bottom: 0;
	color: var(--atlas-muted);
	font-weight: 600;
	align-self: flex-end;
}

.atlas-dash-filter-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	padding-bottom: 0;
	min-height: 42px;
}

.atlas-dash-filter-actions .atlas-client-btn {
	min-width: 88px;
}

.atlas-dash-filter-clear {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--atlas-muted);
	text-decoration: none;
}

.atlas-dash-filter-clear:hover {
	color: var(--atlas-navy);
	text-decoration: underline;
}

.atlas-dash-empty {
	margin-bottom: 22px;
	text-align: center;
}

.atlas-dash-empty h2 {
	margin: 0 0 8px;
	color: var(--atlas-navy);
}

.atlas-dash-metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.atlas-metric-card {
	background: var(--atlas-white);
	border-radius: 12px;
	padding: 18px;
	border: 1px solid rgba(0, 27, 61, 0.06);
	box-shadow: 0 6px 18px rgba(0, 27, 61, 0.04);
}

.atlas-metric-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: block;
	margin-bottom: 12px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 18px;
}

.atlas-metric-icon--views {
	background-color: rgba(37, 99, 235, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M2.25 12s3.75-6.75 9.75-6.75S21.75 12 21.75 12s-3.75 6.75-9.75 6.75S2.25 12 2.25 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.atlas-metric-icon--downloads {
	background-color: rgba(24, 183, 160, 0.15);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2318b7a0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4 16v2a2 2 0 002 2h12a2 2 0 002-2v-2M12 4v12m0 0l-4-4m4 4l4-4'/%3E%3C/svg%3E");
}

.atlas-metric-icon--emails {
	background-color: rgba(124, 58, 237, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3 7.5l9 6 9-6M4.5 6h15A1.5 1.5 0 0121 7.5v9A1.5 1.5 0 0119.5 18h-15A1.5 1.5 0 013 16.5v-9A1.5 1.5 0 014.5 6z'/%3E%3C/svg%3E");
}

.atlas-metric-icon--phones {
	background-color: rgba(234, 88, 12, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ea580c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M2.5 5.5c0-1.2 1-2.2 2.2-2.2h2.1c.9 0 1.7.6 1.9 1.5l.7 2.7a2 2 0 01-.5 1.9l-1.1 1.1a14 14 0 006.4 6.4l1.1-1.1a2 2 0 011.9-.5l2.7.7c.9.2 1.5 1 1.5 1.9v2.1c0 1.2-1 2.2-2.2 2.2C9.7 21.7 2.5 14.5 2.5 5.5z'/%3E%3C/svg%3E");
}

.atlas-metric-label {
	margin: 0 0 6px;
	font-size: 0.85rem;
	color: var(--atlas-muted);
	font-weight: 500;
}

.atlas-metric-value {
	margin: 0 0 4px;
	font-size: 1.55rem;
	font-weight: 700;
	color: var(--atlas-navy);
}

.atlas-metric-meta {
	margin: 0;
	font-size: 0.78rem;
	color: var(--atlas-muted);
}

.atlas-dash-chart-card {
	background: var(--atlas-white);
	border-radius: 12px;
	padding: 20px;
	border: 1px solid rgba(0, 27, 61, 0.06);
	box-shadow: 0 6px 18px rgba(0, 27, 61, 0.04);
}

.atlas-dash-chart-head h2 {
	margin: 0 0 16px;
	font-size: 1.1rem;
	color: var(--atlas-navy);
}

.atlas-dash-chart-wrap {
	position: relative;
	min-height: 260px;
}

.atlas-dash-chart-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--atlas-navy-soft);
}

.atlas-dash-chart-summary .atlas-summary-label {
	display: block;
	font-size: 0.8rem;
	color: var(--atlas-muted);
	margin-bottom: 4px;
}

.atlas-dash-chart-summary strong {
	font-size: 1.15rem;
	color: var(--atlas-navy);
}

.atlas-dash-chart-summary small {
	display: block;
	margin-top: 2px;
	color: var(--atlas-muted);
}

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

@media (max-width: 900px) {
	.atlas-dash-metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.atlas-reg-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.atlas-reg-actions {
		justify-content: stretch;
	}

	.atlas-reg-actions .atlas-client-btn {
		width: 100%;
	}

	.atlas-dash-metrics,
	.atlas-dash-chart-summary {
		grid-template-columns: 1fr;
	}

	.atlas-dash-filters {
		padding: 14px;
		gap: 10px;
	}

	.atlas-dash-filter-field,
	.atlas-dash-filter-field--report {
		min-width: 100%;
		flex: 1 1 100%;
	}

	.atlas-dash-filter-sep {
		display: none;
	}

	.atlas-dash-filter-actions {
		width: 100%;
		margin-left: 0;
		justify-content: stretch;
	}

	.atlas-dash-filter-actions .atlas-client-btn {
		flex: 1;
	}

	.atlas-login-recovery {
		flex-direction: column;
	}

	.atlas-client-card {
		padding: 20px 16px;
	}
}
