* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

.screen { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.hidden { display: none !important; }

/* Login */
.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 360px;
    text-align: center;
}
.login-card h1 { color: #1a73e8; font-size: 32px; margin-bottom: 4px; }
.subtitle { color: #666; margin-bottom: 24px; }
.login-card input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: border 0.2s;
}
.login-card input:focus { border-color: #1a73e8; }
.login-card button {
    width: 100%;
    padding: 14px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.login-card button:hover { background: #1557b0; }
.error { color: #d32f2f; margin-top: 12px; font-size: 14px; }

/* QR Screen */
#qr-screen { flex-direction: column; padding: 20px; }
.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}
.qr-header span { font-weight: 600; font-size: 18px; color: #333; }
.logout {
    background: none;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.qr-container {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    text-align: center;
}
#qr-code { margin-bottom: 16px; }
#qr-code canvas { max-width: 280px !important; height: auto !important; }
.timer {
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}
.timer .countdown { font-weight: 700; color: #1a73e8; }
.hint { color: #888; font-size: 14px; }
