/* Login BTQ — palet emerald dari login_contoh.html */

html,
body.login-page {
	min-height: 100%;
}

body.login-page {
	font-family: 'Inter', sans-serif;
	background-color: #f4fbf7;
	background-image:
		radial-gradient(ellipse 70% 48% at 8% 8%, rgba(253, 230, 138, 0.72), transparent 58%),
		radial-gradient(ellipse 62% 50% at 92% 88%, rgba(110, 231, 183, 0.55), transparent 54%),
		radial-gradient(ellipse 42% 36% at 78% 12%, rgba(167, 243, 208, 0.5), transparent 50%),
		linear-gradient(165deg, #f7fdf9 0%, #fffdf6 46%, #ecfdf5 100%);
	overflow-x: hidden;
	overflow-y: auto;
}

.login-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100dvh;
	justify-content: center;
	gap: clamp(0.45rem, 1.2vh, 0.9rem);
	padding: clamp(0.55rem, 1.4vh, 1.1rem) 0;
	box-sizing: border-box;
}

.login-main {
	flex: 0 1 auto;
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	justify-items: center;
	gap: 1rem;
}

.login-hero {
	width: 100%;
	max-width: 44rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
}

.login-title {
	font-size: clamp(1.7rem, 3.1vw, 3.35rem);
	white-space: normal;
	color: #022c22;
}

.login-lead {
	font-size: clamp(1rem, 1.25vw, 1.15rem);
	line-height: 1.6;
	font-weight: 500;
	color: #022c22;
	max-width: 40rem;
}

.login-card-wrap {
	width: 100%;
	max-width: 30rem;
	min-width: 0;
}

.login-card {
	padding: 1.35rem 1.5rem 1.2rem;
}

.login-prayer {
	flex: 0 0 auto;
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 0;
}

.login-prayer-card {
	padding: 0.7rem 0.85rem;
	border-radius: 1rem;
}

.login-prayer-top {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
	margin-bottom: 0.55rem;
	align-items: center;
}

.khgt-dates {
	display: flex;
	justify-content: stretch;
	align-items: stretch;
	gap: 0.45rem;
	margin: 0;
	width: 100%;
	min-width: 0;
}

.khgt-dates > div {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	background: rgba(6, 78, 59, 0.88);
	border: 1px solid rgba(245, 158, 11, 0.35);
	border-radius: 0.85rem;
	padding: 0.45rem 0.7rem;
}

.khgt-dates span {
	display: block;
	font-size: 0.58rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fbbf24;
}

.khgt-dates strong {
	display: block;
	margin-top: 0.1rem;
	font-size: 0.78rem;
	color: #fffbeb;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.login-prayer-head {
	min-width: 0;
}

.login-prayer-head h3 {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.login-prayer-head p {
	margin: 0.15rem 0 0;
	font-size: 0.7rem;
	color: #fde68a;
}

#prayer-location-meta {
	color: rgba(253, 230, 138, 0.72) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.login-prayer-tools {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.khgt-source {
	font-size: 0.68rem;
	font-weight: 700;
	color: #fbbf24;
	white-space: nowrap;
}

.prayer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
}

#quote-dots {
	display: none;
}

@media (min-width: 1024px) {
	.login-main {
		grid-template-columns: minmax(0, 1.2fr) minmax(22rem, 28rem);
		justify-content: stretch;
		align-items: center;
		padding: 0;
		gap: clamp(1.25rem, 3vw, 3rem);
	}

	.login-hero {
		text-align: left;
		align-items: flex-start;
		max-width: none;
	}

	.login-lead {
		max-width: 46rem;
	}

	.login-card-wrap {
		justify-self: stretch;
		max-width: none;
	}

	.login-prayer-top {
		grid-template-columns: minmax(12rem, 0.9fr) minmax(14rem, 0.85fr) minmax(16rem, 1.15fr);
		align-items: center;
	}

	.khgt-dates {
		max-width: none;
	}

	.prayer-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	#quote-dots {
		display: flex;
	}

		#quran-quote-box {
		width: 100%;
		max-width: 42rem;
		min-width: 0;
	}

	#quran-translation,
	#quran-arabic,
	#quran-surah {
		overflow-wrap: anywhere;
	}
}

@media (min-width: 1440px) {
	.login-main,
	.login-prayer {
		width: min(1220px, 72vw);
	}

	.login-title {
		font-size: clamp(2.1rem, 2.6vw, 3rem);
	}

	.login-card {
		padding: 1.5rem 1.6rem 1.35rem;
	}

	.login-card-wrap {
		max-width: 30rem;
		justify-self: end;
	}

	.khgt-dates strong {
		font-size: 0.92rem;
	}

	.prayer-slot strong {
		font-size: 1.05rem;
	}
}

@media (min-width: 1800px) {
	.login-main,
	.login-prayer {
		width: min(1240px, 64vw);
	}
}

@media (min-width: 1024px) and (max-height: 820px) {
	.login-title {
		font-size: 2rem;
	}

	.login-card {
		padding: 1rem 1.15rem;
	}

	.login-prayer-card {
		padding: 0.5rem 0.8rem;
	}

	.login-main {
		gap: 1.2rem;
	}

	.login-hero {
		gap: 0.45rem;
	}
}

@media (max-width: 1023px) {
	.login-shell {
		justify-content: flex-start;
		min-height: 100dvh;
	}

	.login-hero {
		display: contents;
	}

	.login-hero > :not(#quran-quote-box) {
		width: 100%;
		max-width: 44rem;
	}

	.login-card-wrap {
		order: 1;
	}

	#quran-quote-box {
		order: 2;
		width: 100%;
		max-width: 30rem;
		text-align: left;
	}

	.login-prayer,
	.login-prayer-card,
	.login-prayer-top,
	.login-prayer-head,
	.login-prayer-tools {
		min-width: 0;
		max-width: 100%;
	}

	.khgt-dates {
		max-width: 100%;
		margin-inline: 0;
	}

	#prayer-location-name,
	#prayer-location-meta {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
		overflow-wrap: anywhere;
		line-height: 1.35;
	}

	.login-prayer-tools {
		flex-wrap: wrap;
		align-items: stretch;
	}

	.login-prayer-tools .prayer-action-btn,
	.login-prayer-tools .relative {
		flex: 1 1 12rem;
		min-width: 0;
	}
}

@media (max-width: 640px) {
	.khgt-dates {
		flex-direction: column;
	}

	.login-prayer-tools {
		flex-direction: column;
	}

	.login-prayer-tools .prayer-action-btn,
	.login-prayer-tools .relative,
	.login-prayer-tools .khgt-source {
		width: 100%;
		flex: 1 1 auto;
	}

	.khgt-source {
		text-align: center;
	}
}

@media (max-height: 760px) and (min-width: 1024px) {
	.login-shell {
		justify-content: flex-start;
		gap: 0.4rem;
		padding: 0.45rem 0 0.55rem;
	}

	.login-title {
		font-size: 1.7rem;
	}

	.login-hero {
		gap: 0.4rem;
	}

	.login-card {
		padding: 0.85rem 1rem 0.75rem;
	}

	.login-prayer-card {
		padding: 0.45rem 0.7rem;
	}
}

.glass-card {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(16, 185, 129, 0.22);
	box-shadow: 0 22px 48px -20px rgba(6, 78, 59, 0.22);
}

.glass-input {
	background: #ffffff;
	border: 1px solid rgba(5, 150, 105, 0.28);
	color: #064e3b;
	transition: all 0.3s ease;
}

.glass-input::placeholder {
	color: rgba(6, 78, 59, 0.55);
}

.glass-input:focus {
	background: #fffef8;
	border-color: #f59e0b;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

#bg-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	opacity: 0.5;
	pointer-events: none;
}

.arabic-text {
	font-family: 'Amiri', serif;
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #ecfdf5;
}

::-webkit-scrollbar-thumb {
	background: #d97706;
	border-radius: 4px;
}

.info-modal {
	display: none;
}

.info-modal.is-open {
	display: flex;
}

.swal-btq {
	border: 1px solid rgba(245, 158, 11, 0.4) !important;
	border-radius: 1rem !important;
	font-family: Inter, sans-serif !important;
}

.swal2-title {
	color: #92400e !important;
}

.swal2-html-container {
	color: #065f46 !important;
}

.swal2-container {
	z-index: 20000 !important;
}

.prayer-slot {
	background: rgba(2, 44, 34, 0.45);
	border: 1px solid rgba(245, 158, 11, 0.22);
	border-radius: 0.7rem;
	padding: 0.45rem 0.3rem;
	text-align: center;
}

.prayer-slot span {
	display: block;
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fbbf24;
	margin-bottom: 0.35rem;
}

.prayer-slot strong {
	display: block;
	font-size: 0.92rem;
	color: #fffbeb;
	min-height: 1.15rem;
}

.prayer-slot em {
	display: block;
	min-height: 0.9rem;
	margin-top: 0.15rem;
	font-size: 0.62rem;
	font-style: normal;
	color: rgba(253, 230, 138, 0.78);
	line-height: 1.2;
}

.prayer-slot.is-current {
	background: #fffbeb;
	border: 2px solid #fbbf24;
	box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.7), 0 10px 22px rgba(245, 158, 11, 0.4);
	padding: 0.55rem 0.35rem 0.5rem;
}

.prayer-slot.is-current span {
	color: #b45309;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.prayer-slot.is-current strong {
	color: #111827;
	font-size: 1.22rem;
	font-weight: 800;
	line-height: 1.15;
}

.prayer-slot.is-current em {
	color: #047857;
	font-size: 0.72rem;
	font-weight: 700;
}

.prayer-slot.is-next {
	border-color: #f59e0b;
	background: rgba(245, 158, 11, 0.14);
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.prayer-skel {
	display: block;
	height: 1.15rem;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(245,158,11,0.12), rgba(253,230,138,0.35), rgba(245,158,11,0.12));
	background-size: 200% 100%;
	animation: prayer-shimmer 1.2s ease-in-out infinite;
}

@keyframes prayer-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

.prayer-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	white-space: nowrap;
	background: rgba(245, 158, 11, 0.16);
	border: 1px solid rgba(245, 158, 11, 0.4);
	color: #fde68a;
	border-radius: 0.75rem;
	padding: 0.48rem 0.7rem;
	font-size: 0.7rem;
	font-weight: 600;
}

.prayer-action-btn:hover,
.prayer-action-btn:focus {
	background: rgba(245, 158, 11, 0.28);
}

.prayer-action-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.prayer-city-results {
	position: absolute;
	left: 0;
	right: 0;
	top: auto;
	bottom: calc(100% + 0.35rem);
	z-index: 30;
	max-height: 11rem;
	overflow-y: auto;
	background: #064e3b;
	border: 1px solid rgba(245, 158, 11, 0.35);
	border-radius: 0.85rem;
	box-shadow: 0 -16px 40px rgba(2, 44, 34, 0.45);
}

.prayer-city-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.7rem 0.85rem;
	border-bottom: 1px solid rgba(245, 158, 11, 0.12);
	color: #fffbeb;
}

.prayer-city-item strong {
	display: block;
	font-size: 0.8rem;
}

.prayer-city-item span {
	display: block;
	font-size: 0.68rem;
	color: #fde68a;
	margin-top: 0.15rem;
}

.prayer-city-item:hover,
.prayer-city-item:focus {
	background: rgba(245, 158, 11, 0.12);
}

.prayer-city-empty {
	padding: 0.8rem;
	font-size: 0.75rem;
	color: #fde68a;
}

.adzan-countdown {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.45rem;
	margin-bottom: 0.5rem;
	padding: 0.55rem 0.75rem 0.6rem;
	border-radius: 0.75rem;
	background: linear-gradient(90deg, rgba(217, 119, 6, 0.28), rgba(245, 158, 11, 0.16));
	border: 1px solid rgba(251, 191, 36, 0.55);
}

.adzan-countdown[hidden] {
	display: none !important;
}

.adzan-countdown-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.adzan-countdown-label {
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fde68a;
}

.adzan-countdown-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: #fffbeb;
}

.adzan-countdown-time {
	font-size: 1.15rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #fbbf24;
}

.adzan-progress {
	width: 100%;
	height: 0.55rem;
	background: rgba(2, 44, 34, 0.55);
	border: 1px solid rgba(251, 191, 36, 0.28);
	border-radius: 999px;
	overflow: hidden;
}

.adzan-progress-bar {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background: linear-gradient(90deg, #d97706, #fbbf24, #fde68a, #fbbf24);
	background-size: 220% 100%;
	box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
	animation: adzan-progress-move 1.6s linear infinite;
	transition: width 0.85s linear;
}

@keyframes adzan-progress-move {
	0% { background-position: 0% 50%; }
	100% { background-position: 100% 50%; }
}
