/**
 * Veloout Checkout — Estilo do login passwordless na área do cliente.
 *
 * @package CheckoutRelampago
 * @author  Veloout
 * @license GPL-2.0-or-later
 *
 * Desenvolvido por Veloout — veloout.com
 */

.crlp-auth {
	--crlp-radius: 12px;
	--crlp-line: #e6e9ee;
	--crlp-ink: #14161b;
	--crlp-muted: #616b7a;
	--crlp-err: #e5484d;
	font-family: inherit;
	max-width: 460px;
	margin: 0 auto 28px;
}
.crlp-auth *, .crlp-auth *::before, .crlp-auth *::after { box-sizing: border-box; }

.crlp-auth__card {
	background: #fff;
	border: 1px solid var(--crlp-line);
	border-radius: 16px;
	padding: 24px 22px;
}
.crlp-auth__title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--crlp-ink); }
.crlp-auth__sub { font-size: 14px; color: var(--crlp-muted); margin: 0 0 18px; }
.crlp-auth__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--crlp-muted); margin-bottom: 7px; }
.crlp-auth__input {
	width: 100%; border: 1px solid #d8dde6; border-radius: var(--crlp-radius);
	padding: 13px 14px; font-size: 16px; color: var(--crlp-ink); font-family: inherit;
}
.crlp-auth__input:focus { outline: none; border-color: var(--crlp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crlp-accent) 18%, transparent); }

.crlp-auth__btn {
	width: 100%; border: 0; border-radius: var(--crlp-radius); padding: 14px; margin-top: 16px;
	font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
	background: var(--crlp-accent); color: var(--crlp-accent-ink);
	display: flex; align-items: center; justify-content: center; position: relative;
	transition: filter .15s;
}
.crlp-auth__btn:hover { filter: brightness(1.05); }
.crlp-auth__btn:disabled { opacity: .6; cursor: default; }
.crlp-auth__btn.is-loading { color: transparent; }
.crlp-auth__btn.is-loading::after {
	content: ""; position: absolute; width: 18px; height: 18px;
	border: 2px solid color-mix(in srgb, var(--crlp-accent-ink) 40%, transparent);
	border-top-color: var(--crlp-accent-ink); border-radius: 50%; animation: crlp-auth-spin .7s linear infinite;
}
@keyframes crlp-auth-spin { to { transform: rotate(360deg); } }

.crlp-auth__ghost { width: 100%; background: none; border: 0; color: var(--crlp-muted); font-family: inherit; font-size: 13.5px; cursor: pointer; padding: 10px; margin-top: 4px; }
.crlp-auth__ghost:hover { color: var(--crlp-ink); }

.crlp-auth__otp { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 4px; }
.crlp-auth__otp input {
	width: 100%; aspect-ratio: 3 / 4; text-align: center;
	border: 1px solid #d8dde6; border-radius: var(--crlp-radius);
	font-size: 22px; font-weight: 700; font-family: inherit; color: var(--crlp-ink);
}
.crlp-auth__otp input:focus { outline: none; border-color: var(--crlp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--crlp-accent) 18%, transparent); }
.crlp-auth__target { font-weight: 600; color: var(--crlp-ink); }

.crlp-auth__error { font-size: 12.5px; color: var(--crlp-err); margin: 9px 2px 0; display: none; }
.crlp-auth__error.is-shown { display: block; }

.crlp-auth__divider { text-align: center; margin: 22px 0 4px; position: relative; }
.crlp-auth__divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--crlp-line); }
.crlp-auth__divider span { position: relative; background: var(--wc-form-bg, #fff); padding: 0 12px; font-size: 12.5px; color: var(--crlp-muted); }
