.moss-auth-card {
	max-width: 420px;
	margin: 40px auto;
	padding: 32px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	font-family: inherit;
}

.moss-auth-card-wide {
	max-width: 640px;
}

.moss-auth-title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: #14245c;
	text-align: center;
}

.moss-auth-subtitle {
	margin: 0 0 24px;
	font-size: 13px;
	font-weight: 600;
	color: #0064A9;
	text-align: center;
}

.moss-auth-section {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin: 8px 0 12px;
}

.moss-auth-error {
	background: #fee2e2;
	color: #b91c1c;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 16px;
}

.moss-auth-form label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 14px;
}

.moss-auth-row {
	display: flex;
	gap: 16px;
}

.moss-auth-row label {
	flex: 1;
}

@media (max-width: 600px) {
	.moss-auth-row {
		flex-wrap: wrap;
	}
}

.moss-auth-form input[type="text"],
.moss-auth-form input[type="email"],
.moss-auth-form input[type="tel"],
.moss-auth-form input[type="password"],
.moss-auth-form select,
.moss-auth-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 16px;
	border: 1px solid #d7dee8;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 400;
	box-sizing: border-box;
	color: #1f2937;
}

.moss-auth-form textarea {
	border-radius: 16px;
}

/* Match the pill inputs: drop the OS chrome and draw our own arrow. */
.moss-auth-form select {
	appearance: none;
	-webkit-appearance: none;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 38px;
	font-family: inherit;
	cursor: pointer;
}

.moss-auth-form input:focus,
.moss-auth-form textarea:focus {
	outline: none;
	border-color: #0064A9;
}

/* Password field with show/hide toggle */

.moss-password-field {
	position: relative;
	display: block;
	margin-top: 6px;
}

.moss-password-field input {
	margin-top: 0;
	padding-right: 42px;
}

.moss-password-toggle {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #94a3b8;
	display: flex;
}

.moss-password-toggle.is-visible { color: #0064A9; }

.moss-forgot-password {
	margin: -6px 0 18px;
	text-align: right;
}

.moss-forgot-password a {
	font-size: 12px;
	font-weight: 600;
	color: #0064A9;
	text-decoration: none;
}

.moss-btn {
	display: inline-block;
	background: #0064A9;
	color: #fff !important;
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}

.moss-btn:hover {
	background: #00416F;
}

.moss-btn-block {
	display: block;
	width: 100%;
	margin-top: 8px;
}

.moss-btn-pill {
	border-radius: 999px;
	padding: 13px 20px;
}

.moss-auth-actions-right {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
}

.moss-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 16px;
	font-size: 11.5px;
	font-weight: 700;
	color: #475569;
	text-align: center;
}

.moss-auth-divider::before,
.moss-auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

.moss-oauth-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.moss-oauth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 1px solid #d7dee8;
	border-radius: 999px;
	padding: 11px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #1f2937 !important;
	text-decoration: none;
	background: #fff;
}

.moss-oauth-btn:hover {
	background: #f8fafc;
}

.moss-auth-footer {
	text-align: center;
	font-size: 13px;
	color: #64748b;
	margin-top: 20px;
}

.moss-auth-footer a {
	color: #0064A9;
	font-weight: 600;
}
