/* MBK Auth 1.0 — sign-in screens. Scoped under .mbk-au*. Brand: green + orange. */

.mbk-au,
.mbk-au-screen,
.mbk-au-modal {
	--g: #155b3a;
	--g-d: #0b4329;
	--g-s: #edf6f1;
	--o: #f45a1b;
	--o-d: #d9480f;
	--o-s: #fff2e9;
	--r: #d92d20;
	--ink: #1f272d;
	--mut: #69737b;
	--line: #dfe4e8;
	--rad: 14px;
}

.mbk-au *,
.mbk-au-screen *,
.mbk-au-modal * { box-sizing: border-box; }

body.mbk-auth-page { margin: 0; background: #f6f7f9; color: var(--ink, #1f272d); -webkit-font-smoothing: antialiased; }

/* Icons (CSS masks, so they follow text colour) */
.mbk-au-benefits__ico,
.mbk-au-input__icon,
.mbk-au-reveal,
.mbk-au-done__ico::after {
	display: inline-block;
	background: currentColor;
	-webkit-mask: var(--i) center / contain no-repeat;
	mask: var(--i) center / contain no-repeat;
}
[data-ico="truck"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
[data-ico="wallet"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7a2 2 0 0 1 2-2h12v4'/%3E%3Cpath d='M4 7v11a2 2 0 0 0 2 2h14V9H6a2 2 0 0 1-2-2Z'/%3E%3Ccircle cx='16' cy='14.5' r='1'/%3E%3C/svg%3E"); }
[data-ico="pin"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='9' r='2'/%3E%3C/svg%3E"); }
[data-ico="heart"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 1 0-7.8 7.8L12 21l8.9-8.6a5.5 5.5 0 0 0-.1-7.8Z'/%3E%3C/svg%3E"); }
[data-ico="shield"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8 8 9 4.6-1 8-4 8-9V6Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
[data-ico="gift"] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='5' rx='1'/%3E%3Cpath d='M5 13v8h14v-8M12 8v13'/%3E%3C/svg%3E"); }

/* -------------------------------------------------------------------------
   Full page
   ------------------------------------------------------------------------- */

.mbk-au-screen { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: #f6f7f9; }

.mbk-au-brand { display: none; }

.mbk-au-main {
	display: flex; flex-direction: column; align-items: center;
	padding: calc(10px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
}
.mbk-au-main__top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 8px; }
.mbk-au-back { color: var(--mut); font-size: 14px; font-weight: 600; text-decoration: none; }
.mbk-au-back:hover { color: var(--g); }

.mbk-au-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.mbk-au-logo img { display: block; width: auto; max-height: 44px; max-width: 160px; object-fit: contain; }
.mbk-au-logo--small img { max-height: 34px; }
.mbk-au-logo__mark { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--g); border-radius: 8px; color: var(--o); font-weight: 900; font-size: 22px; background: #fff; }
.mbk-au-logo__text { color: var(--o); font-weight: 800; font-size: 19px; white-space: nowrap; }
.mbk-au-logo__text b { color: var(--g); }

.mbk-au-card {
	width: 100%; max-width: 440px;
	padding: 26px 20px 20px;
	background: #fff; border: 1px solid #e6eaed; border-radius: 20px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .12);
}
.mbk-au-card .woocommerce-message,
.mbk-au-card .woocommerce-error,
.mbk-au-card .woocommerce-info { list-style: none; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--g-s); color: var(--g-d); font-size: 14px; border: 0; }
.mbk-au-card .woocommerce-error { background: #fdeceb; color: #912018; }
.mbk-au-card .woocommerce-message::before,
.mbk-au-card .woocommerce-error::before,
.mbk-au-card .woocommerce-info::before { display: none; }
.mbk-au-noscript { margin-top: 16px; }

/* -------------------------------------------------------------------------
   Form (page, window, shortcode)
   ------------------------------------------------------------------------- */

.mbk-au { color: var(--ink); font-size: 15px; line-height: 1.45; }
.mbk-au [hidden] { display: none !important; }
.mbk-au-step.is-active { animation: mbk-au-in .25s ease; }
@keyframes mbk-au-in { from { opacity: 0; transform: translateY(6px); } }

.mbk-au .mbk-au-title { margin: 0 0 6px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.mbk-au-sub { margin: 0 0 20px; color: var(--mut); font-size: 14.5px; }

.mbk-au-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.mbk-au-form.is-busy { opacity: .75; }
.mbk-au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.mbk-au-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.mbk-au-field > span:first-child { font-size: 13.5px; font-weight: 700; color: #3f474e; }
.mbk-au-field i { color: var(--mut); font-style: normal; font-weight: 500; }

.mbk-au-input { position: relative; display: flex; align-items: center; }
.mbk-au .mbk-au-input input,
.mbk-au .mbk-au-otp {
	width: 100%; height: 52px; margin: 0;
	padding: 0 14px;
	border: 1.5px solid var(--line); border-radius: 13px;
	background: #fff; color: var(--ink);
	font: inherit; font-size: 16px; /* 16px: no zoom on iPhone */
	box-shadow: none; outline: 0;
	transition: border-color .15s, box-shadow .15s;
}
.mbk-au .mbk-au-input input:focus,
.mbk-au .mbk-au-otp:focus { border-color: var(--g); box-shadow: 0 0 0 4px rgba(21, 91, 58, .12); }
.mbk-au .mbk-au-input input::placeholder { color: #a3abb2; }

.mbk-au-input__icon { position: absolute; left: 14px; width: 20px; height: 20px; color: #9aa3ab; pointer-events: none; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.mbk-au-input__icon[data-type="phone"] { color: var(--g); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.mbk-au-input__icon[data-type="email"] { color: var(--g); --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.mbk-au .mbk-au-input__icon + input { padding-left: 44px; padding-right: 92px; }

.mbk-au-input__chip { position: absolute; right: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef1f3; color: #46505a; pointer-events: none; }
.mbk-au-input__chip.is-orange { background: #fff1e6; color: #e8590c; }
.mbk-au-input__chip.is-mtn { background: #fff8d6; color: #8a6d00; }
.mbk-au-input__chip.is-moov { background: #e8f0ff; color: #1d4ed8; }
.mbk-au-input__chip.is-email { background: var(--g-s); color: var(--g); }

.mbk-au-reveal { position: absolute; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer; color: #8b949c; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); -webkit-mask-size: 22px; mask-size: 22px; }
.mbk-au-reveal.is-on { color: var(--g); }
.mbk-au .mbk-au-input input[type="password"],
.mbk-au .mbk-au-reveal ~ input,
.mbk-au .mbk-au-input input:has(+ .mbk-au-reveal) { padding-right: 52px; }

.mbk-au-otp { text-align: center; font-size: 28px !important; font-weight: 800; letter-spacing: .5em; padding-left: .5em !important; height: 62px !important; font-variant-numeric: tabular-nums; }
.mbk-au-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mbk-au-hidden { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.mbk-au-strength { display: flex; align-items: center; gap: 8px; }
.mbk-au-strength i { flex: 1; height: 4px; border-radius: 4px; background: #eef1f3; position: relative; overflow: hidden; }
.mbk-au-strength i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0); background: var(--c, var(--r)); transition: width .25s, background .25s; }
.mbk-au-strength em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--c, var(--mut)); }

.mbk-au-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #4a535b; cursor: pointer; margin: 0; }
.mbk-au-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--g); flex: none; }

.mbk-au-error { margin: 0; padding: 10px 12px; border-radius: 11px; background: #fdeceb; color: #912018; font-size: 13.5px; font-weight: 500; }

.mbk-au .mbk-au-btn {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; min-height: 52px; margin: 0; padding: 0 18px;
	border: 1.5px solid transparent; border-radius: 13px;
	font: inherit; font-size: 15.5px; font-weight: 800; line-height: 1.2;
	text-align: center; text-decoration: none; cursor: pointer;
	transition: background .15s, transform .05s, opacity .15s;
}
.mbk-au .mbk-au-btn:active { transform: translateY(1px); }
.mbk-au .mbk-au-btn:disabled { opacity: .7; cursor: wait; }
.mbk-au .mbk-au-btn--primary { background: var(--g); color: #fff; }
.mbk-au .mbk-au-btn--primary:hover { background: var(--g-d); color: #fff; }
.mbk-au .mbk-au-btn--soft { background: var(--g-s); color: var(--g); flex-direction: column; gap: 0; min-height: 52px; }
.mbk-au .mbk-au-btn--soft small { font-weight: 600; font-size: 12px; opacity: .8; }
.mbk-au .mbk-au-btn--ghost { margin-top: 10px; background: #fff; border-color: var(--line); color: var(--ink); }
.mbk-au-form.is-busy .mbk-au-btn--primary { position: relative; color: transparent; }
.mbk-au-form.is-busy .mbk-au-btn--primary::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: mbk-au-spin .7s linear infinite; }
@keyframes mbk-au-spin { to { transform: rotate(360deg); } }

.mbk-au-link { padding: 6px; border: 0; background: none; color: var(--g); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.mbk-au-link:hover { text-decoration: underline; }
.mbk-au-link:disabled { color: var(--mut); cursor: default; text-decoration: none; }

.mbk-au-alt { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }

.mbk-au-who {
	display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
	margin: 0 0 16px; padding: 6px 12px 6px 10px;
	border: 1px solid var(--line); border-radius: 999px; background: #f8f9fa;
	color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.mbk-au-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbk-au-who em { font-style: normal; color: var(--g); font-weight: 700; }

.mbk-au-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--mut); font-size: 13px; }
.mbk-au-or::before,
.mbk-au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mbk-au-social { display: flex; flex-direction: column; gap: 10px; }
.mbk-au-social .mbk-au-or { margin-bottom: 4px; }
.mbk-au .mbk-au-btn--facebook { background: #1877f2; color: #fff; min-height: 48px; border-radius: 999px; font-size: 15px; }
.mbk-au .mbk-au-btn--facebook:hover { background: #166fe5; color: #fff; }
.mbk-au-google__btn { display: flex; justify-content: center; min-height: 44px; }

.mbk-au-fine { margin: 16px 0 0; color: var(--mut); font-size: 12.5px; text-align: center; }
.mbk-au-fine a,
.mbk-au-help a { color: var(--g); font-weight: 700; text-decoration: none; }
.mbk-au-help { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #eef1f3; text-align: center; font-size: 13px; }

.mbk-au-done { text-align: center; padding: 10px 0; }
.mbk-au-done__ico { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--g); color: #fff; animation: mbk-au-pop .45s ease; }
.mbk-au-done__ico::after { content: ""; width: 34px; height: 34px; --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
@keyframes mbk-au-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.mbk-au-done .mbk-au-sub { margin-top: 10px; }
.mbk-au-coupon { margin: 14px auto 0; padding: 14px; max-width: 300px; border: 2px dashed var(--o); border-radius: 14px; background: var(--o-s); }
.mbk-au-coupon span { display: block; font-size: 12.5px; color: var(--o-d); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mbk-au-coupon button { margin-top: 4px; border: 0; background: none; font: inherit; font-size: 24px; font-weight: 900; letter-spacing: .08em; color: var(--ink); cursor: copy; position: relative; }
.mbk-au-coupon button[data-copied]::after { content: attr(data-copied); position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--g); white-space: nowrap; }

/* -------------------------------------------------------------------------
   Sign-in window (bottom sheet on phones, centred dialog on computers)
   ------------------------------------------------------------------------- */

html.mbk-au-lock,
html.mbk-au-lock body { overflow: hidden; }

.mbk-au-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
.mbk-au-modal[hidden] { display: none !important; }
.mbk-au-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 30, .5); opacity: 0; transition: opacity .22s; }
.mbk-au-modal__sheet {
	position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
	padding: 28px 20px calc(22px + env(safe-area-inset-bottom));
	border-radius: 22px 22px 0 0; background: #fff;
	transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
	overscroll-behavior: contain;
}
.mbk-au-modal__sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #dfe4e8; }
.mbk-au-modal.is-open .mbk-au-modal__backdrop { opacity: 1; }
.mbk-au-modal.is-open .mbk-au-modal__sheet { transform: none; }
.mbk-au-modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2f4f5; color: #3f474e; font-size: 24px; line-height: 1; cursor: pointer; z-index: 1; }
.mbk-au-modal .mbk-au-title { padding-right: 40px; }

/* -------------------------------------------------------------------------
   Larger screens
   ------------------------------------------------------------------------- */

@media (min-width: 640px) {
	.mbk-au-main { justify-content: center; padding-top: 32px; }
	.mbk-au-card { padding: 34px 32px 26px; }
	.mbk-au-modal { align-items: center; padding: 24px; }
	.mbk-au-modal__sheet { max-width: 440px; border-radius: 22px; padding: 32px 30px 24px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; }
	.mbk-au-modal.is-open .mbk-au-modal__sheet { opacity: 1; }
	.mbk-au-modal__sheet::before { display: none; }
}

@media (min-width: 980px) {
	.mbk-au-screen { grid-template-columns: minmax(380px, 46%) minmax(0, 1fr); }
	.mbk-au-brand {
		position: sticky; top: 0; height: 100vh;
		display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
		padding: 40px 48px;
		color: #fff; overflow: hidden;
		background:
			radial-gradient(900px 500px at 110% -10%, rgba(244, 90, 27, .45), transparent 60%),
			radial-gradient(700px 500px at -20% 120%, rgba(255, 255, 255, .10), transparent 60%),
			linear-gradient(160deg, #155b3a 0%, #0b4329 100%);
	}
	.mbk-au-brand::after {
		content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
		border: 60px solid rgba(255, 255, 255, .05);
	}
	.mbk-au-brand .mbk-au-logo { align-self: flex-start; padding: 10px 14px; border-radius: 14px; background: #fff; }
	.mbk-au-brand__copy { position: relative; z-index: 1; max-width: 460px; }
	.mbk-au-brand h2 { margin: 0 0 14px; font-size: 38px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff; }
	.mbk-au-brand__offer { display: inline-block; margin: 0 0 22px; padding: 8px 14px; border-radius: 999px; background: var(--o); color: #fff; font-weight: 800; font-size: 14.5px; }
	.mbk-au-benefits { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
	.mbk-au-benefits li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: rgba(255, 255, 255, .92); }
	.mbk-au-benefits__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background-color: transparent; position: relative; }
	.mbk-au-benefits li .mbk-au-benefits__ico { -webkit-mask: none; mask: none; background: rgba(255, 255, 255, .12); }
	.mbk-au-benefits li .mbk-au-benefits__ico::after { content: ""; position: absolute; inset: 10px; background: #fff; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
	.mbk-au-brand__foot { position: relative; z-index: 1; margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
	.mbk-au-brand__foot a { color: #fff; font-weight: 800; text-decoration: none; }
	.mbk-au-main { padding: 32px 40px; }
	.mbk-au-main__top { max-width: 440px; }
	.mbk-au-logo--small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mbk-au *, .mbk-au-modal * { animation: none !important; transition: none !important; }
}
