.ns-auth-shell {
	--ns-purple: #6846d8;
	--ns-dark: #5232bd;
	--ns-ink: #20243b;
	--ns-muted: #626681;
	--ns-border: #e1d9f7;
	--ns-soft: #f5f2fd;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 36px auto;
	padding: 0 16px;
	color: var(--ns-ink);
	font-family: Inter, Arial, sans-serif;
}

.ns-auth-shell *,
.ns-auth-shell *::before,
.ns-auth-shell *::after {
	box-sizing: border-box;
}

.ns-auth-card {
	width: 100%;
	background: #fff;
	border: 1px solid var(--ns-border);
	border-radius: 16px;
	padding: clamp(28px, 5vw, 40px);
	box-shadow: 0 16px 45px rgba(72, 47, 130, 0.06);
	box-sizing: border-box;
}

.ns-auth-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 22px;
}

.ns-auth-brand img {
	display: block;
	width: 42px;
	height: 42px;
}

.ns-auth-brand strong {
	font-size: 20px;
	color: var(--ns-ink);
}

.ns-auth-brand strong span {
	color: var(--ns-purple);
}

.ns-auth-card h1 {
	margin: 0 0 10px;
	color: var(--ns-ink);
	font-size: clamp(26px, 5vw, 32px);
	line-height: 1.2;
	text-align: center;
}

.ns-auth-lead {
	margin: 0 0 24px;
	color: var(--ns-muted);
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.ns-auth-hint {
	margin: 14px 0 0;
	color: var(--ns-muted);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.ns-auth-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff5f5;
	color: #8a1f1f;
	font-size: 14px;
	line-height: 1.5;
	border: 1px solid #f0c7c7;
}

.ns-auth-notice--ok {
	background: #eefbf3;
	color: #1f6b3c;
	border-color: #c8e9d5;
}

.ns-auth-google {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border: 1px solid #d6d1e1 !important;
	border-radius: 10px;
	background: #fff !important;
	color: var(--ns-ink) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.ns-auth-google:hover {
	background: var(--ns-soft) !important;
	color: var(--ns-dark) !important;
}

.ns-auth-google svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 18px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ns-auth-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0;
	color: var(--ns-muted);
	font-size: 13px;
}

.ns-auth-divider::before,
.ns-auth-divider::after {
	content: "";
	height: 1px;
	background: var(--ns-border);
	flex: 1;
}

.ns-auth-form {
	display: grid;
	gap: 20px;
}

.ns-auth-form label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ns-ink);
}

.ns-auth-form input[type="email"] {
	width: 100%;
	min-height: 46px;
	border: 1px solid #e1d9f7 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--ns-ink) !important;
	font-size: 15px !important;
	padding: 12px 14px !important;
	box-shadow: none !important;
}

.ns-auth-form input[type="email"]:focus {
	outline: none !important;
	border-color: #6846d8 !important;
	box-shadow: 0 0 0 3px rgba(104, 70, 216, 0.18) !important;
}

.ns-auth-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px !important;
	border: 1px solid var(--ns-purple) !important;
	border-radius: 10px !important;
	background: var(--ns-purple) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: none !important;
}

.ns-auth-button:hover,
.ns-auth-button:focus {
	background: var(--ns-dark) !important;
	border-color: var(--ns-dark) !important;
	color: #fff !important;
}

.ns-auth-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ns-auth-button-outline {
	background: #fff !important;
	color: var(--ns-purple) !important;
}

.ns-auth-button-outline:hover,
.ns-auth-button-outline:focus {
	background: var(--ns-soft) !important;
	color: var(--ns-dark) !important;
	border-color: var(--ns-dark) !important;
}

.ns-auth-btn-icon,
.ns-auth-button svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: middle;
}

.ns-auth-button span {
	display: inline-flex !important;
	align-items: center !important;
	line-height: 1 !important;
	margin: 0 !important;
}

.ns-auth-legal {
	margin: 18px 0 0;
	color: var(--ns-muted);
	font-size: 12px;
	line-height: 1.55;
	text-align: center;
}

.ns-auth-legal a {
	color: var(--ns-purple) !important;
	font-weight: 700;
	text-decoration: none !important;
}

.ns-auth-legal a:hover {
	color: var(--ns-dark) !important;
}

.ns-auth-text-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 40px;
	color: var(--ns-purple) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.ns-auth-text-link:hover {
	color: var(--ns-dark) !important;
}

.ns-auth-inbox {
	text-align: center;
}

.ns-auth-mail-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--ns-soft);
	color: var(--ns-purple);
	border: 1px solid var(--ns-border);
}

.ns-auth-mail-icon--warn {
	background: #fff6e8;
	color: #9a5b00;
	border-color: #f0d7a8;
}

.ns-auth-email-mask {
	display: block;
	margin: 4px 0 8px;
	color: var(--ns-ink);
	font-size: 18px;
	overflow-wrap: anywhere;
}

.ns-auth-actions {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.ns-auth-dash {
	max-width: 760px;
}

.ns-auth-dash h1 {
	text-align: left;
}

.ns-auth-dash .ns-auth-lead {
	text-align: left;
}

.ns-auth-dash-meta {
	margin: 18px 0;
	padding: 16px;
	border-radius: 12px;
	background: var(--ns-soft);
	border: 1px solid var(--ns-border);
	color: var(--ns-muted);
	font-size: 14px;
	line-height: 1.6;
}

.ns-auth-dash-meta strong {
	color: var(--ns-ink);
}

@media (max-width: 520px) {
	.ns-auth-shell {
		margin: 20px auto;
	}

	.ns-auth-card {
		padding: 22px 18px;
	}
}
