/* Shared layout for the Members and module login pages. */
:root {
			--brand: #0f766e;
			--brand-dark: #0f3f3b;
			--brand-soft: #e8f7f4;
			--ink: #10201e;
			--muted: #63716f;
			--line: #dce8e5;
		}

		html {
			min-height: 100%;
			background: var(--brand-dark);
		}

		body {
			min-height: 100vh;
			min-height: 100dvh;
			margin: 0;
			color: var(--ink);
			background:
				radial-gradient(circle at top left, rgba(201, 151, 47, 0.16), transparent 26rem),
				linear-gradient(135deg, #092c28 0%, #0f3f3b 58%, #0a302b 100%);
			font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
		}

		.login-shell {
			width: 100%;
			max-width: 460px;
			min-height: 100vh;
			min-height: 100dvh;
			margin: 0 auto;
			padding: calc(env(safe-area-inset-top) + 22px) 18px calc(env(safe-area-inset-bottom) + 24px);
			display: flex;
			flex-direction: column;
			justify-content: center;
		}

		.login-brand {
			color: #fff;
			margin-bottom: 22px;
		}

		.brand-row {
			display: flex;
			align-items: center;
			gap: 12px;
		}

		.brand-logo {
			width: 58px;
			height: 58px;
			border-radius: 18px;
			background: rgba(255, 255, 255, 0.96);
			box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
			padding: 8px;
			object-fit: contain;
		}

		.login-brand h1 {
			margin: 0;
			font-size: 24px;
			font-weight: 800;
			letter-spacing: 0;
			line-height: 1.1;
			text-align: left;
		}

		.login-brand p {
			margin: 6px 0 0;
			color: rgba(255, 255, 255, 0.82);
			font-size: 14px;
		}

		.login-card {
			background: rgba(8, 46, 41, 0.88);
			border: 1px solid rgba(255, 255, 255, 0.18);
			border-radius: 8px;
			box-shadow: 0 22px 60px rgba(16, 32, 30, 0.24);
			overflow: hidden;
		}

		.prayer-panel {
			padding: 15px 16px;
			background: linear-gradient(135deg, #123f39 0%, #0c2f2b 100%);
			border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		}

		.date-line {
			display: flex;
			justify-content: space-between;
			gap: 12px;
			color: rgba(255, 255, 255, 0.72);
			font-size: 12px;
			font-weight: 700;
			text-transform: uppercase;
		}

		.date-stack {
			min-width: 0;
		}

		.date-stack strong,
		.date-stack span {
			display: block;
		}

		.date-stack strong {
			margin-top: 3px;
			color: #fff;
			font-size: 13px;
			line-height: 1.25;
			text-transform: none;
		}

		.date-stack-right {
			text-align: right;
		}

		.holiday-line {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 10px;
			margin-top: 6px;
			color: #f5d98f;
			font-size: 13px;
			font-weight: 700;
		}

		.location-line {
			display: flex;
			align-items: flex-start;
			gap: 7px;
			margin-top: 11px;
			padding: 9px 10px;
			border: 1px solid rgba(255, 255, 255, 0.16);
			border-radius: 8px;
			background: rgba(255, 255, 255, 0.08);
			color: rgba(255, 255, 255, 0.9);
			font-size: 12px;
			font-weight: 700;
			line-height: 1.35;
		}

		.location-line .fa {
			margin-top: 2px;
			color: #f5d98f;
		}

		.prayer-grid {
			display: grid;
			grid-template-columns: repeat(4, 1fr);
			gap: 8px;
			margin-top: 13px;
		}

		.prayer-item {
			min-width: 0;
			padding: 8px 6px;
			background: rgba(255, 255, 255, 0.08);
			border: 1px solid rgba(255, 255, 255, 0.14);
			border-radius: 8px;
			text-align: center;
		}

		.prayer-item span {
			display: block;
			color: rgba(255, 255, 255, 0.72);
			font-size: 10px;
			font-weight: 800;
			text-transform: uppercase;
		}

		.prayer-item strong {
			display: block;
			margin-top: 3px;
			color: #fff;
			font-size: 12px;
			font-weight: 800;
			white-space: nowrap;
		}

		.form-panel {
			padding: 24px 18px 20px;
			color: #fff;
		}

		.form-panel a.back-link {
			display: inline-flex;
			align-items: center;
			gap: 8px;
			padding: 6px 12px;
			border-radius: 8px;
			background: rgba(255, 255, 255, 0.1);
			color: #e8f6f1;
			font-size: 13px;
			font-weight: 700;
			text-decoration: none;
		}

		.form-panel a.back-link:hover,
		.form-panel a.back-link:focus {
			background: rgba(255, 255, 255, 0.18);
			color: #fff;
		}

		.form-panel h2 {
			margin: 0;
			color: #fff;
			font-size: 22px;
			font-weight: 800;
			letter-spacing: 0;
		}

		.form-panel .subtitle {
			margin: 7px 0 20px;
			color: rgba(255, 255, 255, 0.76);
			font-size: 14px;
			line-height: 1.45;
		}

		.form-group label {
			color: rgba(255, 255, 255, 0.94);
			font-size: 13px;
			font-weight: 800;
		}

		.password-wrap,
		.field-wrap {
			position: relative;
		}

		.password-wrap .fa,
		.field-wrap .fa {
			position: absolute;
			top: 50%;
			left: 14px;
			color: var(--brand);
			transform: translateY(-50%);
			pointer-events: none;
		}

		.password-wrap .form-control,
		.field-wrap .form-control {
			height: 52px;
			padding: 12px 14px 12px 42px;
			border: 1px solid #cbdad6;
			border-radius: 8px;
			box-shadow: none;
			font-size: 16px;
		}

		.password-wrap .form-control:focus,
		.field-wrap .form-control:focus {
			border-color: var(--brand);
			box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
		}

		.remember-row {
			display: flex;
			align-items: center;
			gap: 10px;
			margin: 14px 0 18px;
			color: rgba(255, 255, 255, 0.9);
			font-size: 14px;
			font-weight: 700;
		}

		.remember-row input {
			width: 20px;
			height: 20px;
			margin: 0;
			accent-color: var(--brand);
		}

		.form-panel .form-group {
			margin-bottom: 16px;
		}

		.option-row {
			display: flex;
			align-items: center;
			gap: 8px;
			margin: -4px 0 14px;
			color: rgba(255, 255, 255, 0.86);
			font-size: 13px;
		}

		.option-row input {
			margin: 0;
			accent-color: var(--brand);
		}

		.option-row label {
			margin: 0;
			cursor: pointer;
		}

		.login-button {
			width: 100%;
			min-height: 52px;
			border: 0;
			border-radius: 8px;
			background: var(--brand);
			color: #fff;
			font-size: 16px;
			font-weight: 800;
			box-shadow: 0 12px 24px rgba(15, 118, 110, 0.26);
		}

		.login-button:focus,
		.login-button:hover {
			background: #0b5f59;
			color: #fff;
		}

		.install-card {
			margin-top: 14px;
			text-align: center;
		}

		.install-card .btn {
			width: 100%;
			min-height: 48px;
			border: 1px solid #2353d8;
			border-radius: 8px;
			background: #2353d8;
			color: #fff;
			font-weight: 800;
		}

		.install-card .btn:hover,
		.install-card .btn:focus {
			background: #1b47c4;
			border-color: #1b47c4;
		}

		.alert {
			border-radius: 8px;
			font-size: 14px;
		}

		.hidden {
			display: none !important;
		}

		@media (max-width: 360px) {
			.login-shell {
				padding-left: 12px;
				padding-right: 12px;
			}

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

			.date-line,
			.holiday-line {
				display: block;
			}

			.date-stack-right {
				margin-top: 8px;
				text-align: left;
			}

			.login-brand h1 {
				font-size: 21px;
			}
		}
