/* Styles scoped for login */
/* Allow scroll on small screens to avoid content being cut off */
body { overflow: hidden !important;}
.login-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary); }
.btn-google { background: rgba(204, 204, 204, 0.2); color: #fff; padding: 0.875rem 0; border: none; border-radius: 0.375rem; font-size: 1.125rem; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; margin: 1.5rem auto 0 auto; width: 100%; transition: background 0.2s; }
.btn-google:hover { background: #1765c1; }
.google-icon { width: 1.5rem; height: 1.5rem; margin-right: 0.75rem; }
.divider { margin: 2rem 0 1rem 0; border-top: 1px solid #eee; }

/* App mode switch */
.app-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; margin: 0 0 1rem 0; max-width: 28rem; margin-left: auto; margin-right: auto; justify-content: center; align-content: center; }
.app-mode-card { position: relative; background: #fafafa; border: 1px solid #e6e6e6; border-radius: 0.5rem; padding: 1rem; display: flex; align-items: center; gap: 0.5rem; cursor: pointer; text-align: left; color: #202124; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.app-mode-card:hover { border-color: #d8d8d8; }
.app-mode-card .app-mode-check { position: absolute; top: 0.5rem; left: 0.5rem; font-size: 1rem; color: #9e9e9e; }
.app-mode-card .app-mode-icon { font-size: 1.5rem; color: #5f6368; margin-left: 25px; }
.app-mode-card .app-mode-text { font-weight: 600; }
.app-mode-card.selected { border-color: #d2e3fc; background: #e8f0fe; }
.app-mode-card.selected .app-mode-check { color: #188038; }

/* Mobile responsiveness */
@media (max-width: 480px) {
	/* Permit vertical scrolling on small screens */
	body { overflow: auto !important; }

	/* Container fills width with comfortable padding */
	.access-container {
		min-width: auto !important;
		width: 90%;
		max-width: 22rem;
		margin: 2rem auto;
		padding: 1.25rem;
		box-shadow: none; /* flatter look on mobile */
	}

	.login-title { font-size: 1.5rem; margin-bottom: 1rem; }

	/* Stack mode cards in a single column for better tap targets */
	.app-mode-grid {
		grid-template-columns: 1fr;
		gap: 0.625rem;
	}
	.app-mode-card { padding: 0.875rem; }
	.app-mode-card .app-mode-icon { margin-left: 1.5rem; }

	/* Larger touch target for the Google button */
	.btn-google { font-size: 1rem; padding: 0.875rem 0; }
	.google-icon { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; }
}
