/**
 * 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 {
	-webkit-appearance: none !important; appearance: none !important;
	width: 100% !important; box-sizing: border-box;
	border: 1px solid #d8dde6 !important; border-radius: var(--crlp-radius) !important; box-shadow: none !important;
	padding: 13px 14px; font-size: 16px !important; line-height: 1.3 !important; color: var(--crlp-ink) !important; font-family: inherit !important;
	background: #fff !important; background-image: none !important; margin: 0 !important; height: auto !important;
}
.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); }

/* Rótulo flutuante (mesmo padrão do checkout). Requer placeholder=" " e ordem input → label. */
.crlp-auth__float { position: relative; }
.crlp-auth__float .crlp-auth__input { padding-top: 21px; padding-bottom: 5px; }
.crlp-auth__flabel {
	position: absolute; left: 15px; top: 15px; font-size: 16px; font-weight: 500; color: var(--crlp-muted);
	pointer-events: none; transform-origin: left top; transition: transform .15s ease, color .15s ease;
}
.crlp-auth__float .crlp-auth__input:focus ~ .crlp-auth__flabel,
.crlp-auth__float .crlp-auth__input:not(:placeholder-shown) ~ .crlp-auth__flabel {
	transform: translateY(-10px) scale(.72); font-weight: 600;
}
.crlp-auth__float .crlp-auth__input:focus ~ .crlp-auth__flabel { color: var(--crlp-accent); }

/* Botão principal: blindado contra o CSS do tema da loja (que roda nesta página).
   Usa !important + reset nas propriedades que os temas costumam sobrescrever
   (fundo, borda, sombra, caixa-alta) para SEMPRE mostrar o accent limpo e forte. */
.crlp-auth__btn {
	-webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
	width: 100% !important; box-sizing: border-box;
	margin: 16px 0 0 !important; padding: 14px 16px !important;
	border: 0 !important; outline: 0; box-shadow: none !important; text-shadow: none !important;
	border-radius: var(--crlp-radius) !important;
	font-size: 15px !important; font-weight: 700 !important; font-family: inherit !important;
	line-height: 1.2 !important; letter-spacing: normal !important; text-transform: none !important; text-decoration: none !important;
	min-height: 0 !important; height: auto !important; cursor: pointer;
	background: var(--crlp-accent, #2E63F6) !important; background-image: none !important;
	color: var(--crlp-accent-ink, #ffffff) !important;
	display: flex !important; align-items: center; justify-content: center; gap: 8px; position: relative;
	transition: filter .15s ease, transform .08s ease;
}
.crlp-auth__btn:hover { filter: brightness(1.06); }
.crlp-auth__btn:active { transform: scale(.99); }
.crlp-auth__btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--crlp-accent, #2E63F6) 48%, transparent) !important; outline-offset: 2px; }
.crlp-auth__btn:disabled { opacity: .6; cursor: default; }
.crlp-auth__btn.is-loading { color: transparent !important; }
.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 {
	-webkit-appearance: none !important; appearance: none !important;
	width: 100% !important; background: none !important; background-image: none !important;
	border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
	color: var(--crlp-muted) !important; font-family: inherit !important; font-size: 13.5px !important;
	font-weight: 500 !important; text-transform: none !important; letter-spacing: normal !important;
	cursor: pointer; padding: 10px !important; margin: 4px 0 0 !important; min-height: 0 !important; height: auto !important;
}
.crlp-auth__ghost:hover { color: var(--crlp-ink) !important; }

.crlp-auth__otp { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 4px; }
.crlp-auth__otp input {
	-webkit-appearance: none !important; appearance: none !important;
	width: 100% !important; aspect-ratio: 3 / 4; text-align: center; box-sizing: border-box;
	border: 1px solid #d8dde6 !important; border-radius: var(--crlp-radius) !important; box-shadow: none !important;
	font-size: 22px !important; font-weight: 700 !important; font-family: inherit !important; color: var(--crlp-ink) !important;
	background: #fff !important; background-image: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: auto !important;
}
.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); }
