/*
 * Tema web (admin) Absen Monitoring BPAFK Surabaya
 * Palet dan huruf sama dengan aplikasi mobile v3.5 (opsi B), mode terang saja.
 *
 * Palet resmi Kemenkes
 *   Turquoise        #00B9AD  kepercayaan       -> warna utama
 *   Hijau Kuning     #CDDC29  ramah, semangat   -> aksi utama / sorotan
 *   Turquoise Medium #60C0D0  terbuka, modern   -> info sekunder
 *   Abu-abu          #686969  profesional       -> teks sekunder, permukaan gelap
 * Turunan (tint / shade) hanya untuk latar muda dan teks di atas putih (kontras >= 4.5:1).
 */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../../mobile-version-3/vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	color-scheme: only light;

	--teal-500: #00b9ad;   /* Turquoise */
	--lime: #cddc29;       /* Hijau Kuning */
	--medium: #60c0d0;     /* Turquoise Medium */
	--gray: #686969;       /* Abu-abu */

	--teal-600: #007d75;   /* teks / ikon Turquoise di atas putih */
	--teal-tint: #e3f7f5;
	--lime-press: #b9c822;
	--lime-ink: #6b7500;
	--lime-tint: #f4f8c6;
	--medium-ink: #237a89;
	--medium-tint: #e0f3f7;

	--ink: #2d2e2e;
	--muted: #686969;
	--line: #e0e7e7;
	--bg: #f0f7f7;
	--field: #eff6f6;
	--paper: #ffffff;
	--bad: #c62d1f;        /* galat / destruktif (di luar palet) */
	--bad-tint: #fff1f0;
	--bad-line: #ffc9c4;

	--bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { height: 100%; }
body.web {
	font-family: var(--bs-body-font-family);
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

/* ---------- komponen bersama ---------- */
.btn-lime {
	display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
	width: 100%; height: 56px; border: 0; border-radius: 16px;
	background: var(--lime); color: var(--ink);
	font-weight: 800; font-size: 1rem;
	box-shadow: 0 10px 20px -12px rgba(150, 165, 10, .9), inset 0 -3px 0 rgba(0, 0, 0, .1);
	transition: transform .1s, background-color .15s;
	cursor: pointer;
}
.btn-lime:hover { background: var(--lime-press); color: var(--ink); }
.btn-lime:active { transform: translateY(2px); }
.btn-lime[disabled] { opacity: .85; pointer-events: none; }
.btn-lime .arrow {
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--gray); color: #fff;
	display: grid; place-items: center; font-size: .75rem;
}

.field { margin-bottom: 1rem; }
.field > label {
	display: block; margin-bottom: .4rem;
	font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.field .control {
	display: flex; align-items: center;
	background: var(--field); border: 1.5px solid transparent; border-radius: 16px;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field .control:focus-within { background: #fff; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(0, 185, 173, .18); }
.field .control.is-invalid { background: var(--bad-tint); border-color: #f0a198; }
.field .control.is-invalid:focus-within { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(198, 45, 31, .12); }
.field .control > .lead-icon { width: 50px; text-align: center; color: var(--teal-600); flex: none; }
.field .control.is-invalid > .lead-icon { color: var(--bad); }
.field .control .form-control {
	background: transparent; border: 0; box-shadow: none;
	height: 54px; padding: 0 .25rem; font-size: 1rem; font-weight: 600; color: var(--ink);
}
.field .control .form-control::placeholder { color: #a2a3a3; font-weight: 500; }
.field .control .toggle { flex: none; width: 52px; height: 54px; border: 0; background: transparent; color: var(--muted); }
.field .hint-error { margin-top: .4rem; font-size: .8rem; font-weight: 600; color: var(--bad); }

.alert-web {
	display: flex; gap: .75rem; align-items: flex-start;
	padding: .85rem 1rem; margin-bottom: 1.1rem;
	border-radius: 16px; background: var(--bad-tint); border: 1.5px solid var(--bad-line); color: #7a1d14;
	font-size: .86rem; line-height: 1.4;
}
.alert-web .ico {
	flex: none; width: 32px; height: 32px; border-radius: 10px;
	display: grid; place-items: center; background: #ffd9d5; color: var(--bad);
}
.alert-web strong { display: block; font-weight: 800; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.rise { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .12s; } .rise.d3 { animation-delay: .18s; }
.shake { animation: shake .4s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
