/* EXVIN sign-in (one-time code) and Sign-in & security. Uses the theme's colours. */
.exvin-auth {
	display: flex;
	justify-content: center;
	padding: 8px 0 32px;
}

.exvin-auth__card {
	inline-size: 100%;
	max-inline-size: 440px;
	padding: 28px 24px;
	background: var(--wp--preset--color--surface, #fff);
	border: 1px solid #D3EAE3;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(11, 59, 48, 0.08);
}

.exvin-auth__title {
	margin: 0 0 6px;
	color: #0B3B30;
	font-size: 1.5rem;
	line-height: 1.3;
}

.exvin-auth__lead {
	margin: 0 0 20px;
	color: var(--wp--preset--color--ink-muted, #2F6B5C);
}

.exvin-auth__form {
	display: grid;
	gap: 14px;
	margin: 0;
}

.exvin-auth__form .exvin-form__submit {
	inline-size: 100%;
	min-block-size: 48px;
}

.exvin-auth__switch {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.exvin-auth__phone {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.exvin-auth__code {
	font-size: 1.5rem !important;
	letter-spacing: 0.4em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.exvin-auth__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 16px;
	margin-block-start: 14px;
}

.exvin-auth__row form,
.exvin-sec form {
	margin: 0;
}

.exvin-auth__link {
	padding: 6px 0;
	border: 0;
	background: none;
	color: #007A5E;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.exvin-auth__link:disabled {
	color: #2F6B5C;
	text-decoration: none;
	cursor: default;
}

.exvin-auth__link:focus-visible {
	outline: 2px solid #009B77;
	outline-offset: 2px;
}

.exvin-auth__help,
.exvin-auth__fine {
	margin: 18px 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--ink-muted, #2F6B5C);
}

.exvin-auth__help a,
.exvin-auth__fine a {
	color: #007A5E;
}

/* Sign-in & security */
.exvin-sec {
	display: grid;
	gap: 20px;
}

.exvin-sec__box {
	padding: 20px;
	border: 1px solid #D3EAE3;
	border-radius: 12px;
	background: #EEF7F4;
}

.exvin-sec__box--danger {
	border-color: #ED1117;
	background: #FFFFFF; /* error text on white only (#ED1117 is 4.47:1 on white, 4.1:1 on the panel) */
}

.exvin-sec__title {
	margin: 0 0 8px;
	font-size: 1.15rem;
	color: #0B3B30;
}

.exvin-sec__list {
	display: grid;
	gap: 8px;
	margin: 0 0 14px;
}

.exvin-sec__list div {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.exvin-sec__list dt {
	min-inline-size: 7rem;
	font-weight: 600;
}

.exvin-sec__list dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.exvin-sec__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.exvin-sec__flow {
	margin-block-start: 12px;
	padding: 16px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #D3EAE3;
}

.exvin-sec__flow h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.exvin-sec__effects {
	margin: 0 0 14px;
	padding-inline-start: 1.2em;
}

.exvin-sec__blockers {
	margin: 0 0 8px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff;
	border-inline-start: 4px solid #D4AF37;
}

.exvin-sec__blockers ul {
	margin: 6px 0;
	padding-inline-start: 1.2em;
}

.exvin-acct__btn.is-danger {
	color: #fff;
	background: #ED1117;
	border-color: #ED1117;
}

/* --------------------------------------------------------------------------
 * D-070: Google, code/password switch, password field, account panel.
 * ----------------------------------------------------------------------- */

@media (min-width: 782px) {
	.exvin-auth__card {
		max-inline-size: 420px;
	}
}

.exvin-auth {
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
}

.exvin-auth__google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-block-size: 48px;
	margin-block-end: 6px;
	border: 1.5px solid #D3EAE3;
	border-radius: 12px;
	background: #fff;
	color: #0B3B30;
	font-weight: 700;
	text-decoration: none;
}

.exvin-auth__google:hover {
	border-color: #009B77;
	background: #EEF7F4;
}

.exvin-auth__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 0;
	color: #2F6B5C;
	font-size: 0.85rem;
}

.exvin-auth__or::before,
.exvin-auth__or::after {
	content: "";
	flex: 1;
	border-block-start: 1px solid #D3EAE3;
}

.exvin-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-block-end: 16px;
	padding: 4px;
	border-radius: 12px;
	background: #EEF7F4;
}

.exvin-auth__tabs a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: 40px;
	border-radius: 9px;
	color: #2F6B5C;
	font-weight: 700;
	text-decoration: none;
}

.exvin-auth__tabs a[aria-current="page"] {
	background: #fff;
	color: #0B3B30;
	box-shadow: 0 1px 3px rgba(11, 59, 48, 0.15);
}

.exvin-pw__wrap {
	position: relative;
	display: block;
}

.exvin-pw__wrap input {
	box-sizing: border-box;
	inline-size: 100%;
	padding-right: 4.5rem;
}

.exvin-pw__toggle {
	position: absolute;
	inset-block: 4px;
	right: 4px;
	min-inline-size: 3.75rem;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: #EEF7F4;
	color: #007A5E;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.exvin-auth__switch-note {
	margin: 14px 0 0;
	text-align: center;
}

.exvin-auth__switch-note a {
	color: #007A5E;
	font-weight: 600;
}

.exvin-auth__side {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 300px;
	padding: 24px;
	border-radius: 16px;
	background: #0B3B30;
	color: rgba(255, 255, 255, 0.9);
}

.exvin-auth__side h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: 1.2rem;
}

.exvin-auth__side ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.exvin-auth__side li {
	position: relative;
	padding-inline-start: 28px;
	line-height: 1.5;
}

.exvin-auth__side li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.2em;
	inline-size: 18px;
	block-size: 18px;
	border-radius: 50%;
	background: #D4AF37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B3B30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* The account panel only makes sense next to the first step on wide screens. */
.exvin-auth:has(.exvin-auth__code, #exvin-auth-name) .exvin-auth__side {
	display: none;
}

@media (max-width: 781px) {
	.exvin-auth__side {
		display: none;
	}
}

.exvin-pw__remove {
	margin-block-start: 16px;
}

.exvin-pw__remove summary {
	color: #ed1117;
	font-weight: 600;
	cursor: pointer;
}
