:root {
    --brand-color: #005A9C; --background-gradient-start: #f5f7fa; --background-gradient-end: #c3cfe2; --card-background: #ffffff; --text-color: #333; --shadow-color: rgba(0, 0, 0, 0.1);
}
html, body { margin: 0; padding: 0; height: 100%; width: 100%; font-family: 'Inter', sans-serif; background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-end)); overflow: hidden; }
.container { display: none; justify-content: center; align-items: center; height: 100vh; width: 100vw; padding: 20px; box-sizing: border-box; }
.card { background: var(--card-background); border-radius: 16px; box-shadow: 0 8px 32px 0 var(--shadow-color); padding: 40px; max-width: 400px; width: 100%; text-align: center; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
h1 { font-size: 1.8rem; color: var(--text-color); margin-bottom: 10px; }
p { color: #666; margin-bottom: 30px; line-height: 1.6; }
#user-info { display: none; }
.ms-login-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid #ccc; border-radius: 8px; background-color: #fff; color: #333; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; width: 100%; box-sizing: border-box; }
.ms-login-button:hover { background-color: #f5f5f5; border-color: #999; }
.ms-login-button img { width: 20px; height: 20px; margin-right: 12px; }
#instructions-container h2 { font-size: 1.5rem; color: var(--brand-color); }
.device-instructions { display: none; text-align: left; }
.device-instructions ol { padding-left: 20px; }
.device-instructions li { margin-bottom: 15px; }
.device-instructions code { background: #eee; padding: 2px 6px; border-radius: 4px; }
.api-button { margin-top: 20px; background-color: var(--brand-color); color: white; border: none; }
#apiResponse { font-size: 0.9rem; margin-top: 15px; word-break: break-all; }
.loader { display: none; margin: 20px auto; border: 4px solid #f3f3f3; border-radius: 50%; border-top: 4px solid var(--brand-color); width: 40px; height: 40px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* New Full Page Loader styles */
.page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--background-gradient-start); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.spinner { border: 5px solid #f3f3f3; border-top: 5px solid var(--brand-color); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }